You are viewing a single comment's thread. Return to all comments →
instead of doing i+1 make your given array in sorted array and store into another array and place it at the place of i+1
Seems like cookies are disabled on this browser, please enable them to open this website
Minimum Swaps 2
You are viewing a single comment's thread. Return to all comments →
instead of doing i+1 make your given array in sorted array and store into another array and place it at the place of i+1