Code Sprout
Learn to code with tutorials you can run and problems judged for real.
- Runs on ls-judge
- Runnable tutorials
- DSA problems in 10 languages
- English & Hindi
Learning
Pick merge sort, Dijkstra or a breadth-first search on your own graph, press play, and watch every step with the state highlighted. Pause, scrub backwards, change the input and run it again. Built for students meeting data structures for the first time and candidates who know the code but want the intuition.
What it does
Interactive simulations of sorting, trees, graphs and more — built for students, teachers and interview preparation.
Watch a sort such as merge sort work with comparisons and moves highlighted, and run two sorts side by side on the same data to compare them.
Build a graph or tree, then run a breadth-first search or Dijkstra's shortest path and watch the frontier move.
Play, pause, step forward, step back and change speed, because each algorithm is instrumented to record a snapshot at every meaningful step.
Nothing to install and no account. Open the page on a laptop, a tablet or a classroom display.
Who it's for
Students learning data structures and algorithms, teachers who want a clear picture on the projector, and interview candidates revising.
Getting started
Open dsa-visualizer.laxmi.solutions; nothing to install.
Choose an algorithm: a sort, a tree operation or a graph search.
Use the default input or enter your own array, or build your own graph or tree.
Press play, then pause, step forward or step back to examine a single comparison or move.
Run two sorts side by side on the same data to compare how many steps each takes.
How it works
Each algorithm is instrumented to record a snapshot of its state at every meaningful step. The renderer replays those snapshots at the speed you choose, which is what makes stepping backwards possible: you see state transitions, not just the final answer.
Good to know
Guides
Yes. It is free in the browser, with no sign-up.
Sorting algorithms, tree and graph algorithms including breadth-first search and Dijkstra's shortest path, and more. The list grows with requests from students and teachers.
Yes. Change the array, build your own graph or tree, and replay the algorithm on it.
Learning
Hands-on ways to practise code, visualise algorithms and build early literacy.
Learn to code with tutorials you can run and problems judged for real.
Compile and judge code in 65 languages.
Draw over any screen while you teach or present.
Free at the core, no account to create, and your work stays on your device.