You are viewing a single comment's thread. Return to all comments →
The question says consecutive integers from 1...n but we have test case as
7 1 3 5 2 4 6 8
7
1 3 5 2 4 6 8
Minimum Swaps 2
You are viewing a single comment's thread. Return to all comments →
The question says consecutive integers from 1...n but we have test case as
7
1 3 5 2 4 6 8