ToolsForcebeta

$ run --tool

DSA Visualizer — Arrays, Stacks, Queues & Complexity

Watch sorting, searching, array operations, stack/queue operations run step by step, plus a full time-complexity reference.

Time complexity —Best O(n)Average O(n²)Worst O(n²)Space O(1)

Features

  • 5 sorting algorithms: Bubble, Selection, Insertion, Quick, Merge
  • Linear and Binary Search with step-by-step comparisons
  • Array insert/delete with element-shifting animation
  • Live Stack (push/pop/peek) and Queue (enqueue/dequeue/peek) visualizations
  • Full time-complexity reference table (best/average/worst/space) for every operation
  • Play/Pause with adjustable speed, or step manually

How to use

  1. 1Pick a mode — Sorting, Searching, Array Operations, Stack, Queue, or Time Complexity
  2. 2For algorithms: enter your own array (or randomize) and click Run, then step through
  3. 3For Stack/Queue: push/pop or enqueue/dequeue live and watch the structure update

Frequently asked questions

Is this useful for interview prep?+

Yes — seeing exactly which elements are compared and swapped at each step, plus the time complexity of each operation, is a common way to build intuition before whiteboard interviews.

Will more data structures be added?+

Arrays, stacks and queues are covered here — linked lists and trees have their own dedicated visualizers.

Related tools

Need a tool that isn't here yet?

ToolsForce is growing every week. Tell us what to build next.

Request a tool