Stalin Sort

Keeps only the non-decreasing prefix.

Time: O(n)Space: O(n)
Run your code to generate animation.
Sound: On
Advanced
{}