How to Visualize Algorithms Using the Provided Code
1. Visit algorithm-visualizer.org (large screen devices are recommended)
2. Click the “+” icon
3. Replace the rightmost block with the provided code
4. Click the “Build” button
5. Click the “Play” button to watch the animation or use the green bar to step through it