CS205

Sandbox Mode

Experiment freely with data structures and algorithms. Write code, run it, and see the results in real-time.

Bubble Sort
64
34
25
12
22
11
90
0
1
2
3
4
5
6
Ready to start
Step 0 of 0
Speed:500ms
Default
Comparing
Swapping
Sorted
Pivot
Algorithm Info

Repeatedly swaps adjacent elements if they are in the wrong order.

Best Case
O(n)
Average Case
O(n²)
Worst Case
O(n²)
Space
O(1)
Java Code Editor
Loading editor...
Output
Click "Run" to execute the code

Sandbox Tips

Visualizer

  • • Use play/pause controls to step through animations
  • • Adjust speed with the slider
  • • Click "Randomize" for new data
  • • Keyboard: Space (play/pause), ← → (step)

Code Editor

  • • Select a template from the dropdown
  • • Modify the code as you wish
  • • Click "Run" to execute
  • • Click "Reset" to restore the template