I am unable to solve this problem without using any additional space and without modifying the permutation (first variant of this problem in the book). Does someone have a solution for this?
Thanks
Salman
I am unable to solve this problem without using any additional space and without modifying the permutation (first variant of this problem in the book). Does someone have a solution for this?
Thanks
Salman