Push Swap Visualizer
Program
Manual
Auto-detect
Values (space-separated)
18 21 23 25 3 17 29 10 15 20 33 9 40 36 32 6 0 19 31 38 1 35 16 26 30 28 5 27 12 22 34 41 4 24 8 11 39 13 7 2 37 14
Command to execute:
# Command will appear here
Copy
Operations (one per line)
Load
Clear
Import TXT
Count
Shuffle
Run your push_swap program and paste its output here:
Load Operations
Import TXT
Statistics
Total operations:
0
Current step:
0
/
0
Operation breakdown:
sa:
0
(0%)
sb:
0
(0%)
ss:
0
(0%)
pa:
0
(0%)
pb:
0
(0%)
ra:
0
(0%)
rb:
0
(0%)
rr:
0
(0%)
rra:
0
(0%)
rrb:
0
(0%)
rrr:
0
(0%)
Operations Sequence
0
operations
Stack A:
0
elements | Stack B:
0
elements
Reset
Start
Pause
20
moves per second
⏮
◀
▶
▶
⏭