You are viewing a single comment's thread. Return to all comments →
Nice approach.
I was skeptical that it will count the minimal swaps, so I went with mapping solution.
How can you be sure this will count the minimal swaps?
Is it a well-known algorithm?
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 →
Nice approach.
I was skeptical that it will count the minimal swaps, so I went with mapping solution.
How can you be sure this will count the minimal swaps?
Is it a well-known algorithm?