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.
Yep, it's a different problem if the numbers aren't actually consecutive. If they want to keep those abberrent test cases, they should remove the word consecutive from the problem and make most of the test cases simply be an array of integers with no duplicates, not integers that are nearly consecutive, with a single exception.
Minimum Swaps 2
You are viewing a single comment's thread. Return to all comments →
Yep, it's a different problem if the numbers aren't actually consecutive. If they want to keep those abberrent test cases, they should remove the word consecutive from the problem and make most of the test cases simply be an array of integers with no duplicates, not integers that are nearly consecutive, with a single exception.