You are viewing a single comment's thread. Return to all comments →
because of the way that the for loop is started i = 0 means that it will swap from start to end making the smaller at first
for
i = 0
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 →
because of the way that the
for
loop is startedi = 0
means that it will swap from start to end making the smaller at first