I noticed @otakuprof and @luzhuomi both kept the double for-loop and added `if not swapped: break` instead of using `while swapped:`. It seems to be a more natural way to write if we already have the existing for loops.
I noticed @otakuprof and @luzhuomi both kept the double for-loop and added
if not swapped: breakinstead of usingwhile swapped:.It seems to be a more natural way to write if we already have the existing for loops.