We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I think continue is unnecessary here
we don't have to check for the numbers that are already in their respective places . we can simply swap the numbers that are not in their right position
Minimum Swaps 2
You are viewing a single comment's thread. Return to all comments →
I think continue is unnecessary here we don't have to check for the numbers that are already in their respective places . we can simply swap the numbers that are not in their right position
this is enough