You are viewing a single comment's thread. Return to all comments →
This is such a clean code and will work in any constraint. O(n) sol. with O(1) space. Genuinely impressed!
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 →
This is such a clean code and will work in any constraint. O(n) sol. with O(1) space. Genuinely impressed!