Hi!
I was playing around with sorting algorithms and came up with this ideea
Code
I am wondering how many times this code goes through the while loop
Also if you think that variations of this code (like changing the order in which we go through the powers of 2) could work better please let me know.
Thanks!