Is there any solution with O(1) extra space and in-place swaps possible?


#1

Comment body goes here.