D1: Bubble Sorts

?

Compare the first and second number, if they are in the wrong order, switch them, then copy the second line with switched number, and note the comparison and swap. 

Compare second and third, and swap if they are in the wrong order, then note an additional comparison and swap. 

compare third and forth and swap if they are in the wrong order, then note an additional comparison and swap. 

compare…

Comments

No comments have yet been made