You are viewing a single comment's thread. Return to all comments →
Hi friend, You don't need to check the last element, because in your while, you know that arr[i]>=i iterator < arr.Length-1
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 →
Hi friend, You don't need to check the last element, because in your while, you know that arr[i]>=i iterator < arr.Length-1