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.
Bonjour!
The logic is great but what if the numbers are not consecutive?
because for the series 1 2 3 4 5 6 8 , 8 seems odd for the code and results in an exception.
Can you please explain.
Thanks:)
Minimum Swaps 2
You are viewing a single comment's thread. Return to all comments →
Bonjour! The logic is great but what if the numbers are not consecutive? because for the series 1 2 3 4 5 6 8 , 8 seems odd for the code and results in an exception. Can you please explain. Thanks:)