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.
In question nowhere its mentioned that the array element will always consists 1,2,3..... . if the array starts with suppose 234 and the array size is 40 only your code will give runtime error.
Minimum Swaps 2
You are viewing a single comment's thread. Return to all comments →
In question nowhere its mentioned that the array element will always consists 1,2,3..... . if the array starts with suppose 234 and the array size is 40 only your code will give runtime error.