Skip to content

DSA Visualiser to Watch Algorithms
Step by Step

CodeStory's visualiser covers 26 algorithms across 10 patterns in your browser. Type your own array, string or graph, step forward and back, and see what the code holds at every moment.

You start free with 100 AI credits when you sign up and 100 every month. Watching an algorithm costs no credits.

Tracing on Paper Loses the State

Students rarely get the idea wrong. They lose what the variables hold on step nine.

You can follow merge sort in your head for six elements and lose the thread at twelve. You can study two pointers and still not see why moving the shorter line is the only move that helps. Both gaps come from state, meaning what sits in the window, the stack, the table or the queue right now.

CodeStory's visualiser holds that state in front of you and moves one step at a time. Your array, pointers, recursion tree, DP table and code line move together, forward or back, at your pace.

Try a sorted array, a nearly sorted one, one with duplicates and an empty one. Watching a single algorithm on four inputs removes the surprise from edge cases before your interview.

26 Algorithms Grouped by Pattern

Every pattern gets its idea in a single line, followed by its algorithms.

What You Can Do While You Watch

CodeStory built it for study, not for demo videos.

Step, back, replay

Move one step at a time in either direction or let the algorithm play. Pause on the step you did not understand and stay there as long as you need.

Your input, not ours

Type the array, string or graph you want. Your own tricky case teaches more than ten clean ones.

Code in step

CodeStory highlights the executing line as the picture changes, so the drawing and the code stay together.

Share the exact step

Copy a link that carries the algorithm, your input and the step number, then send a friend the exact moment you got stuck.

Where to Go Next

Students open these pages after the visualiser.

Everything in the App in One Place

Practice, interviews and tools all start free. Swipe to see the rest.

Sign up for 100 AI credits now and get 100 more every month. Start free in the app

DSA Visualiser FAQs

Not sure yet? Start free or ask a mentor on a call.

Start free
What is a DSA visualiser?

CodeStory's visualiser draws a data structure while an algorithm works on it. You see the array, pointers, stack, tree or table change at every step instead of imagining them.

Which algorithms can I watch?

CodeStory's visualiser covers 26 algorithms. They include bubble, insertion, merge and quick sort, binary search and lower bound, two pointers, sliding window, stacks, tree traversals, BST, heaps, BFS, DFS, grid shortest path, topological sort, Union Find, Dijkstra and DP with knapsack and longest common subsequence.

Can I use my own input?

Yes. Type your own array, string or graph and the visualiser plays the algorithm on that input, edge cases included.

Can I step backward?

Yes. Move one step forward or back, or let the algorithm play on its own.

Does the visualiser show the code?

Yes. CodeStory highlights the line being executed as the picture changes.

Is the visualiser free?

Yes. Watching an algorithm costs no credits and the app is free to start.

How does it help in an interview?

It builds the picture you fall back on when you feel nervous. Students who see the window or the recursion tree explain their approach faster, and explaining is half the round.

Not Sure Where to Start? Get a Free Mentor Call

Tell CodeStory who you are. On the call, a mentor helps you choose the right batch.

  1. 1CodeStory checks your level, from never coded to ready for interviews.
  2. 2CodeStory suggests online or campus, and a batch timing that fits your day.
  3. 3You decide. No pressure, no payment on the call.

Get a free callback

I am a
I want to learn

Your number is only used for a CodeStory callback.