LIVE DEMO / ALGORITHM VISUALIZER
Watch the stacks get sorted.
Feed it integers and step through the same push_swap vocabulary: rotations, combined moves and a final sorted stack.
Operation—
Step0 / 9
AlgorithmCost-guided
StatusIn progress
STACK A5 nodes
4TOP
6701
302
8703
2304
READY
→
STACK B0 nodes
empty
pbpbrrasarra
Operations are the project’s public vocabulary: sa pa pb ra rb rr rra rrb rrr. Try 1 3 2, 2 1, or a larger random list.