r/Python • • Jan 08 '20

Visualizing Bubble Sort

Post image
2.1k Upvotes

73 comments sorted by

View all comments

1

u/WystanH Jan 09 '20 edited Jan 09 '20

The doesn't really look right. From the very first pass, the last value should be in the right spot.So, each iteration should, at the very least, solve one position.

Apologizes. I was reading this thing wrong. Tis vertical, not horizontal. Now my head hurts.

Still, how exactly does this relate to python? Is there code?