Watch a string sort itself.
Type any word, pick an algorithm, and step through every comparison and swap. Five classic sorts, the same characters, one fluid stage.
- 0
- 0
- 7
Repeatedly swaps adjacent characters that are out of order.
- O(n)
- O(n²)
- O(n²)
- O(1)