AlgoFlow

Learning paths

Three ordered routes through the material. Each entry builds on the ones before it, so following a path in order gives you every prerequisite exactly when you need it.

Beginner path

Start here. Traversal, linear search, the simple sorts and the core container operations — all explained one step at a time.

12 steps
  1. 1Linear SearchCheck every element in turn until the target appears.
  2. 2Binary SearchHalve the search range on every comparison — O(log n).
  3. 3Bubble SortRepeatedly swap neighbouring values that are out of order.
  4. 4Selection SortSelect the minimum of the unsorted region and lock it in.
  5. 5Insertion SortGrow a sorted prefix by sliding each new value into place.
  6. 6Array TraversalVisit every index once — the foundation of O(n) algorithms.
  7. 7Insert & Delete in an ArrayShift elements to open or close a gap in the middle.
  8. 8Singly Linked ListNodes with one pointer: traverse, insert and delete.
  9. 9Stack: Push & PopLast in, first out — the model behind undo, nesting and DFS.
  10. 10Queue: Enqueue & DequeueFirst in, first out — arrivals leave in the order they came.
  11. 11Adjacency ListStore only the edges that actually exist.
  12. 12Recursion Call StackWatch frames push on the way down and pop on the way back.

Intermediate path

Divide and conquer, linked structures, balanced trees and graph traversal. The patterns that show up in most interviews.

18 steps
  1. 1Merge SortSplit in half, sort recursively, then merge the halves.
  2. 2Quick SortPartition around a pivot, then recurse on both sides.
  3. 3Heap SortBuild a max-heap, then repeatedly extract the maximum.
  4. 4Two PointersConverge two ends of a sorted array to find a target pair.
  5. 5Sliding WindowMaintain a fixed-size range and update it in O(1) per step.
  6. 6Doubly Linked ListEach node links backwards as well as forwards.
  7. 7Circular Linked ListThe tail points back at the head — a closed loop.
  8. 8Reverse a Linked ListFlip every pointer with three variables — a classic interview question.
  9. 9Find the Middle NodeFloyd's tortoise and hare — two pointers at different speeds.
  10. 10Circular QueueA ring buffer that reuses emptied slots instead of wasting them.
  11. 11BST InsertionSmaller left, larger right — insert by following one path.
  12. 12BST SearchOne path from root to leaf — never visit both children.
  13. 13Tree TraversalsIn-order, pre-order and post-order depth-first walks.
  14. 14Level-Order TraversalBreadth-first: read every node level by level using a queue.
  15. 15Breadth-First SearchExplore in rings with a FIFO queue — shortest path on unweighted graphs.
  16. 16Depth-First SearchDive down one branch, backtrack, repeat — with a stack.
  17. 17Fibonacci: Recursion vs MemoizationThe same recurrence with and without a cache — a DP warm-up.
  18. 18Climbing StairsCount the ways up with steps of 1 or 2 — Fibonacci in disguise.

Advanced path

Rotations, weighted shortest paths, topological ordering and dynamic programming tables. Depth-first on the hard parts.

9 steps
  1. 1Stack using QueuesSimulate LIFO by reversing a FIFO queue on every push.
  2. 2Queue using StacksTwo stacks reverse an arrival order back into FIFO.
  3. 3BST DeletionThree cases: leaf, one child, or the inorder successor.
  4. 4AVL Tree RotationsRotate whenever a subtree gets more than one level taller.
  5. 5Dijkstra's AlgorithmSettle the closest unsettled node until every distance is final.
  6. 6Cycle DetectionThree-colour DFS: a back edge to a grey node means a cycle.
  7. 7Topological SortOrder dependencies by repeatedly removing in-degree-0 nodes.
  8. 80/1 KnapsackTake or skip each item — fill a 2D table of best values.
  9. 9Longest Common SubsequenceCompare two strings character by character in a 2D table.

Want everything at once?

The catalog shows every visualization grouped by topic, with complexity and prerequisites on each card.

Progress on each path is recorded as you complete visualizations.