You are viewing a single comment's thread. Return to all comments →
for n=7 and arr=1 3 5 2 4 6 8 your code gives answer 4 instead of 3
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 →
for n=7 and arr=1 3 5 2 4 6 8 your code gives answer 4 instead of 3