Pattern Directory
Browse Visualizers by Pattern
Every algorithmic pattern, organized into a dedicated hub. 231 interactive visualizers spread across 181 patterns — pick a hub to drill into the walkthroughs, runtime traces, and source highlights for that pattern.
Pattern1 visualizer
0/1 Knapsack
Interactive walkthroughs for the 0/1 Knapsack pattern.
Explore hub
Pattern1 visualizer
1D DP (Adjacent Skip)
Interactive walkthroughs for the 1D DP (Adjacent Skip) pattern.
Explore hub
Pattern1 visualizer
1D DP (Bottom-Up)
Interactive walkthroughs for the 1D DP (Bottom-Up) pattern.
Explore hub
Pattern1 visualizer
1D DP (Circular Arrays)
Interactive walkthroughs for the 1D DP (Circular Arrays) pattern.
Explore hub
Pattern1 visualizer
1D DP (Coin Combinations)
Interactive walkthroughs for the 1D DP (Coin Combinations) pattern.
Explore hub
Pattern1 visualizer
1D DP (Combinatorics)
Interactive walkthroughs for the 1D DP (Combinatorics) pattern.
Explore hub
Pattern1 visualizer
1D DP (Double Loop)
Interactive walkthroughs for the 1D DP (Double Loop) pattern.
Explore hub
Pattern1 visualizer
1D DP (Fibonacci-like)
Interactive walkthroughs for the 1D DP (Fibonacci-like) pattern.
Explore hub
Pattern1 visualizer
1D DP (Path Cost)
Interactive walkthroughs for the 1D DP (Path Cost) pattern.
Explore hub
Pattern1 visualizer
1D DP (Substring Parsing)
Interactive walkthroughs for the 1D DP (Substring Parsing) pattern.
Explore hub
Pattern1 visualizer
2D DP (Grid Traversal)
Interactive walkthroughs for the 2D DP (Grid Traversal) pattern.
Explore hub
Pattern1 visualizer
2D DP (Interval Windows)
Interactive walkthroughs for the 2D DP (Interval Windows) pattern.
Explore hub
Pattern1 visualizer
2D DP (Matrix Distance)
Interactive walkthroughs for the 2D DP (Matrix Distance) pattern.
Explore hub
Pattern1 visualizer
2D DP (Regex rules)
Interactive walkthroughs for the 2D DP (Regex rules) pattern.
Explore hub
Pattern1 visualizer
2D DP (String alignment)
Interactive walkthroughs for the 2D DP (String alignment) pattern.
Explore hub
Pattern1 visualizer
Augmented Stack
Interactive walkthroughs for the Augmented Stack pattern.
Explore hub
Pattern1 visualizer
Backtracking (2D Constraints)
Interactive walkthroughs for the Backtracking (2D Constraints) pattern.
Explore hub
Pattern1 visualizer
Backtracking (2D Grid DFS)
Interactive walkthroughs for the Backtracking (2D Grid DFS) pattern.
Explore hub
Pattern1 visualizer
Backtracking (Duplicates Warning)
Interactive walkthroughs for the Backtracking (Duplicates Warning) pattern.
Explore hub
Pattern1 visualizer
Backtracking (Fixed Bounds)
Interactive walkthroughs for the Backtracking (Fixed Bounds) pattern.
Explore hub
Pattern1 visualizer
Backtracking (Fixed Length)
Interactive walkthroughs for the Backtracking (Fixed Length) pattern.
Explore hub
Pattern1 visualizer
Backtracking (Include/Exclude)
Interactive walkthroughs for the Backtracking (Include/Exclude) pattern.
Explore hub
Pattern1 visualizer
Backtracking (Multi-branch)
Interactive walkthroughs for the Backtracking (Multi-branch) pattern.
Explore hub
Pattern1 visualizer
Backtracking (Permutations)
Interactive walkthroughs for the Backtracking (Permutations) pattern.
Explore hub
Pattern1 visualizer
Backtracking (Skipping Permutation Duplicates)
Interactive walkthroughs for the Backtracking (Skipping Permutation Duplicates) pattern.
Explore hub
Pattern1 visualizer
Backtracking (Subsets with Duplicates)
Interactive walkthroughs for the Backtracking (Subsets with Duplicates) pattern.
Explore hub
Pattern1 visualizer
Backtracking (Substring cuts)
Interactive walkthroughs for the Backtracking (Substring cuts) pattern.
Explore hub
Pattern1 visualizer
Backtracking (Unlimited Reuse)
Interactive walkthroughs for the Backtracking (Unlimited Reuse) pattern.
Explore hub
Pattern1 visualizer
Bellman-Ford / BFS
Interactive walkthroughs for the Bellman-Ford / BFS pattern.
Explore hub
Pattern1 visualizer
BFS / Queue
Interactive walkthroughs for the BFS / Queue pattern.
Explore hub
Pattern1 visualizer
BFS Shortest Path
Interactive walkthroughs for the BFS Shortest Path pattern.
Explore hub
Pattern1 visualizer
Binary Search
Interactive walkthroughs for the Binary Search pattern.
Explore hub
Pattern1 visualizer
Binary Search on Answer
Interactive walkthroughs for the Binary Search on Answer pattern.
Explore hub
Pattern1 visualizer
Binary Search on Partitions
Interactive walkthroughs for the Binary Search on Partitions pattern.
Explore hub
Pattern1 visualizer
Binary Search on Rotated Array
Interactive walkthroughs for the Binary Search on Rotated Array pattern.
Explore hub
Pattern1 visualizer
Binary Search on Window Start
Interactive walkthroughs for the Binary Search on Window Start pattern.
Explore hub
Pattern1 visualizer
Binary Search with Oracle
Interactive walkthroughs for the Binary Search with Oracle pattern.
Explore hub
Pattern18 visualizers
Binary Tree
Interactive walkthroughs for the Binary Tree pattern.
Explore hub
Pattern1 visualizer
Binary Tree / Serialization
Interactive walkthroughs for the Binary Tree / Serialization pattern.
Explore hub
Pattern1 visualizer
Bit Manipulation / XOR
Interactive walkthroughs for the Bit Manipulation / XOR pattern.
Explore hub
Pattern1 visualizer
Boundary Binary Search
Interactive walkthroughs for the Boundary Binary Search pattern.
Explore hub
Pattern1 visualizer
Bracket Stack
Interactive walkthroughs for the Bracket Stack pattern.
Explore hub
Pattern1 visualizer
BST Directed Search
Interactive walkthroughs for the BST Directed Search pattern.
Explore hub
Pattern1 visualizer
BST Split Point
Interactive walkthroughs for the BST Split Point pattern.
Explore hub
Pattern1 visualizer
Chunk Reversal
Interactive walkthroughs for the Chunk Reversal pattern.
Explore hub
Pattern1 visualizer
Circular Monotonic Stack
Interactive walkthroughs for the Circular Monotonic Stack pattern.
Explore hub
Pattern1 visualizer
Class Design
Interactive walkthroughs for the Class Design pattern.
Explore hub
Pattern1 visualizer
Counting
Interactive walkthroughs for the Counting pattern.
Explore hub
Pattern1 visualizer
Deletion
Interactive walkthroughs for the Deletion pattern.
Explore hub
Pattern1 visualizer
Depth Counting
Interactive walkthroughs for the Depth Counting pattern.
Explore hub
Pattern1 visualizer
DFS Cycle Detection
Interactive walkthroughs for the DFS Cycle Detection pattern.
Explore hub
Pattern1 visualizer
DFS with Level Parameter
Interactive walkthroughs for the DFS with Level Parameter pattern.
Explore hub
Pattern1 visualizer
Dijkstra + DP
Interactive walkthroughs for the Dijkstra + DP pattern.
Explore hub
Pattern1 visualizer
Dijkstra Priority Queue
Interactive walkthroughs for the Dijkstra Priority Queue pattern.
Explore hub
Pattern1 visualizer
Dijkstra's Algorithm
Interactive walkthroughs for the Dijkstra's Algorithm pattern.
Explore hub
Pattern1 visualizer
Directed BST Insertion
Interactive walkthroughs for the Directed BST Insertion pattern.
Explore hub
Pattern1 visualizer
Distribution Sort
Interactive walkthroughs for the Distribution Sort pattern.
Explore hub
Pattern1 visualizer
Divide and Conquer
Interactive walkthroughs for the Divide and Conquer pattern.
Explore hub
Pattern1 visualizer
Double Recursion
Interactive walkthroughs for the Double Recursion pattern.
Explore hub
Pattern1 visualizer
Dummy Node
Interactive walkthroughs for the Dummy Node pattern.
Explore hub
Pattern1 visualizer
Dynamic Programming (Interval)
Interactive walkthroughs for the Dynamic Programming (Interval) pattern.
Explore hub
Pattern1 visualizer
Dynamic Programming (Math)
Interactive walkthroughs for the Dynamic Programming (Math) pattern.
Explore hub
Pattern1 visualizer
Evaluation Stack
Interactive walkthroughs for the Evaluation Stack pattern.
Explore hub
Pattern1 visualizer
Event Sweep Line
Interactive walkthroughs for the Event Sweep Line pattern.
Explore hub
Pattern2 visualizers
Expand Around Center
Interactive walkthroughs for the Expand Around Center pattern.
Explore hub
Pattern1 visualizer
Fast & Slow + Reverse
Interactive walkthroughs for the Fast & Slow + Reverse pattern.
Explore hub
Pattern3 visualizers
Fast & Slow Pointers
Interactive walkthroughs for the Fast & Slow Pointers pattern.
Explore hub
Pattern1 visualizer
Fixed Window Frequency Match
Interactive walkthroughs for the Fixed Window Frequency Match pattern.
Explore hub
Pattern1 visualizer
Floyd-Warshall (All-Pairs)
Interactive walkthroughs for the Floyd-Warshall (All-Pairs) pattern.
Explore hub
Pattern1 visualizer
Forward Two Pointers
Interactive walkthroughs for the Forward Two Pointers pattern.
Explore hub
Pattern1 visualizer
Frequency Map
Interactive walkthroughs for the Frequency Map pattern.
Explore hub
Pattern1 visualizer
Frequency Maps
Interactive walkthroughs for the Frequency Maps pattern.
Explore hub
Pattern1 visualizer
Frequency Signature Hash
Interactive walkthroughs for the Frequency Signature Hash pattern.
Explore hub
Pattern1 visualizer
Graph Backtracking DFS
Interactive walkthroughs for the Graph Backtracking DFS pattern.
Explore hub
Pattern1 visualizer
Graph BFS
Interactive walkthroughs for the Graph BFS pattern.
Explore hub
Pattern1 visualizer
Graph BFS / DFS
Interactive walkthroughs for the Graph BFS / DFS pattern.
Explore hub
Pattern3 visualizers
Graph Matrix DFS
Interactive walkthroughs for the Graph Matrix DFS pattern.
Explore hub
Pattern1 visualizer
Graphs / DFS
Interactive walkthroughs for the Graphs / DFS pattern.
Explore hub
Pattern2 visualizers
Graphs / Minimum Spanning Tree
Interactive walkthroughs for the Graphs / Minimum Spanning Tree pattern.
Explore hub
Pattern4 visualizers
Graphs / Shortest Path
Interactive walkthroughs for the Graphs / Shortest Path pattern.
Explore hub
Pattern2 visualizers
Graphs / Topo Sort
Interactive walkthroughs for the Graphs / Topo Sort pattern.
Explore hub
Pattern2 visualizers
Graphs / Traversal
Interactive walkthroughs for the Graphs / Traversal pattern.
Explore hub
Pattern1 visualizer
Greedy
Interactive walkthroughs for the Greedy pattern.
Explore hub
Pattern1 visualizer
Greedy (Change Making)
Interactive walkthroughs for the Greedy (Change Making) pattern.
Explore hub
Pattern1 visualizer
Greedy (Difference Array / Line Sweep)
Interactive walkthroughs for the Greedy (Difference Array / Line Sweep) pattern.
Explore hub
Pattern1 visualizer
Greedy (Earliest Deadline First)
Interactive walkthroughs for the Greedy (Earliest Deadline First) pattern.
Explore hub
Pattern1 visualizer
Greedy (Frequency Max)
Interactive walkthroughs for the Greedy (Frequency Max) pattern.
Explore hub
Pattern1 visualizer
Greedy (Interval Merging)
Interactive walkthroughs for the Greedy (Interval Merging) pattern.
Explore hub
Pattern1 visualizer
Greedy (Interval Overlaps)
Interactive walkthroughs for the Greedy (Interval Overlaps) pattern.
Explore hub
Pattern1 visualizer
Greedy (Jump Boundary)
Interactive walkthroughs for the Greedy (Jump Boundary) pattern.
Explore hub
Pattern1 visualizer
Greedy (Mountain Decomposition)
Interactive walkthroughs for the Greedy (Mountain Decomposition) pattern.
Explore hub
Pattern1 visualizer
Greedy (Peak/Valley)
Interactive walkthroughs for the Greedy (Peak/Valley) pattern.
Explore hub
Pattern1 visualizer
Greedy (Reachability)
Interactive walkthroughs for the Greedy (Reachability) pattern.
Explore hub
Pattern1 visualizer
Greedy (Running Balance / Cycle)
Interactive walkthroughs for the Greedy (Running Balance / Cycle) pattern.
Explore hub
Pattern1 visualizer
Greedy (Sequence Building)
Interactive walkthroughs for the Greedy (Sequence Building) pattern.
Explore hub
Pattern1 visualizer
Greedy (Sliding Window Boundary)
Interactive walkthroughs for the Greedy (Sliding Window Boundary) pattern.
Explore hub
Pattern1 visualizer
Greedy (Sorting by Difference)
Interactive walkthroughs for the Greedy (Sorting by Difference) pattern.
Explore hub
Pattern1 visualizer
Greedy (Two Passes)
Interactive walkthroughs for the Greedy (Two Passes) pattern.
Explore hub
Pattern1 visualizer
Greedy (Two Pointers/Sorting)
Interactive walkthroughs for the Greedy (Two Pointers/Sorting) pattern.
Explore hub
Pattern1 visualizer
Greedy / Hash Table
Interactive walkthroughs for the Greedy / Hash Table pattern.
Explore hub
Pattern1 visualizer
Greedy Two Pointers
Interactive walkthroughs for the Greedy Two Pointers pattern.
Explore hub
Pattern1 visualizer
Hash Map / Sorting
Interactive walkthroughs for the Hash Map / Sorting pattern.
Explore hub
Pattern1 visualizer
Hash Map + Pair Scan
Interactive walkthroughs for the Hash Map + Pair Scan pattern.
Explore hub
Pattern1 visualizer
Hash Set
Interactive walkthroughs for the Hash Set pattern.
Explore hub
Pattern1 visualizer
Hash Set + Sequence Start
Interactive walkthroughs for the Hash Set + Sequence Start pattern.
Explore hub
Pattern2 visualizers
Hash Set Lookup
Interactive walkthroughs for the Hash Set Lookup pattern.
Explore hub
Pattern7 visualizers
Heap / Priority Queue
Interactive walkthroughs for the Heap / Priority Queue pattern.
Explore hub
Pattern1 visualizer
Hierholzer Algorithm
Interactive walkthroughs for the Hierholzer Algorithm pattern.
Explore hub
Pattern1 visualizer
Horizontal Scanning
Interactive walkthroughs for the Horizontal Scanning pattern.
Explore hub
Pattern1 visualizer
In-Order Traversal
Interactive walkthroughs for the In-Order Traversal pattern.
Explore hub
Pattern1 visualizer
In-Place Reversal
Interactive walkthroughs for the In-Place Reversal pattern.
Explore hub
Pattern1 visualizer
Insertion
Interactive walkthroughs for the Insertion pattern.
Explore hub
Pattern4 visualizers
Iterative Stack
Interactive walkthroughs for the Iterative Stack pattern.
Explore hub
Pattern1 visualizer
Kadane's Algorithm
Interactive walkthroughs for the Kadane's Algorithm pattern.
Explore hub
Pattern1 visualizer
Kadane's Algorithm variant
Interactive walkthroughs for the Kadane's Algorithm variant pattern.
Explore hub
Pattern1 visualizer
Left Boundary Binary Search
Interactive walkthroughs for the Left Boundary Binary Search pattern.
Explore hub
Pattern1 visualizer
Linear Scan
Interactive walkthroughs for the Linear Scan pattern.
Explore hub
Pattern2 visualizers
Linked List
Interactive walkthroughs for the Linked List pattern.
Explore hub
Pattern1 visualizer
LPS / Prefix Function
Interactive walkthroughs for the LPS / Prefix Function pattern.
Explore hub
Pattern1 visualizer
Matching
Interactive walkthroughs for the Matching pattern.
Explore hub
Pattern1 visualizer
Math / Bit Manipulation
Interactive walkthroughs for the Math / Bit Manipulation pattern.
Explore hub
Pattern1 visualizer
Math / Gauss Sum
Interactive walkthroughs for the Math / Gauss Sum pattern.
Explore hub
Pattern1 visualizer
Math & Pointers
Interactive walkthroughs for the Math & Pointers pattern.
Explore hub
Pattern1 visualizer
Matrix BFS
Interactive walkthroughs for the Matrix BFS pattern.
Explore hub
Pattern1 visualizer
Modulo Math & Pointer
Interactive walkthroughs for the Modulo Math & Pointer pattern.
Explore hub
Pattern3 visualizers
Monotonic Stack
Interactive walkthroughs for the Monotonic Stack pattern.
Explore hub
Pattern1 visualizer
Monotonic Stack Mapping
Interactive walkthroughs for the Monotonic Stack Mapping pattern.
Explore hub
Pattern1 visualizer
Mountain Peak Binary Search
Interactive walkthroughs for the Mountain Peak Binary Search pattern.
Explore hub
Pattern1 visualizer
Non-Comparison Sort
Interactive walkthroughs for the Non-Comparison Sort pattern.
Explore hub
Pattern1 visualizer
Non-Comparison Sort (Digit-by-Digit)
Interactive walkthroughs for the Non-Comparison Sort (Digit-by-Digit) pattern.
Explore hub
Pattern2 visualizers
Opposing Two Pointers
Interactive walkthroughs for the Opposing Two Pointers pattern.
Explore hub
Pattern1 visualizer
Parity Binary Search
Interactive walkthroughs for the Parity Binary Search pattern.
Explore hub
Pattern1 visualizer
Pivot Binary Search
Interactive walkthroughs for the Pivot Binary Search pattern.
Explore hub
Pattern1 visualizer
Pointer Swapping
Interactive walkthroughs for the Pointer Swapping pattern.
Explore hub
Pattern1 visualizer
Prefix-Suffix Product
Interactive walkthroughs for the Prefix-Suffix Product pattern.
Explore hub
Pattern1 visualizer
Prim's MST
Interactive walkthroughs for the Prim's MST pattern.
Explore hub
Pattern1 visualizer
Queue BFS
Interactive walkthroughs for the Queue BFS pattern.
Explore hub
Pattern1 visualizer
Queue Rotation
Interactive walkthroughs for the Queue Rotation pattern.
Explore hub
Pattern4 visualizers
Recursion
Interactive walkthroughs for the Recursion pattern.
Explore hub
Pattern1 visualizer
Recursive Bounds
Interactive walkthroughs for the Recursive Bounds pattern.
Explore hub
Pattern1 visualizer
Reverse Scan
Interactive walkthroughs for the Reverse Scan pattern.
Explore hub
Pattern1 visualizer
Reverse Three-Pointer
Interactive walkthroughs for the Reverse Three-Pointer pattern.
Explore hub
Pattern1 visualizer
Reverse Traversal
Interactive walkthroughs for the Reverse Traversal pattern.
Explore hub
Pattern2 visualizers
Rolling Hash
Interactive walkthroughs for the Rolling Hash pattern.
Explore hub
Pattern1 visualizer
Running Balance
Interactive walkthroughs for the Running Balance pattern.
Explore hub
Pattern1 visualizer
Running Count
Interactive walkthroughs for the Running Count pattern.
Explore hub
Pattern1 visualizer
Running Min + Max Profit
Interactive walkthroughs for the Running Min + Max Profit pattern.
Explore hub
Pattern1 visualizer
Sanitize + Reverse Copy
Interactive walkthroughs for the Sanitize + Reverse Copy pattern.
Explore hub
Pattern1 visualizer
Simulation
Interactive walkthroughs for the Simulation pattern.
Explore hub
Pattern1 visualizer
Single Pass Traversal
Interactive walkthroughs for the Single Pass Traversal pattern.
Explore hub
Pattern1 visualizer
Sliding Window
Interactive walkthroughs for the Sliding Window pattern.
Explore hub
Pattern1 visualizer
Sliding Window + Frequency Count
Interactive walkthroughs for the Sliding Window + Frequency Count pattern.
Explore hub
Pattern1 visualizer
Sliding Window + Monotonic Deque
Interactive walkthroughs for the Sliding Window + Monotonic Deque pattern.
Explore hub
Pattern1 visualizer
Sliding Window + Set
Interactive walkthroughs for the Sliding Window + Set pattern.
Explore hub
Pattern1 visualizer
Slope Binary Search
Interactive walkthroughs for the Slope Binary Search pattern.
Explore hub
Pattern1 visualizer
Sorted Two Pointers
Interactive walkthroughs for the Sorted Two Pointers pattern.
Explore hub
Pattern1 visualizer
Stability via Prefix Sums
Interactive walkthroughs for the Stability via Prefix Sums pattern.
Explore hub
Pattern1 visualizer
Stable Counting Sort
Interactive walkthroughs for the Stable Counting Sort pattern.
Explore hub
Pattern1 visualizer
Stack
Interactive walkthroughs for the Stack pattern.
Explore hub
Pattern1 visualizer
String Parsing
Interactive walkthroughs for the String Parsing pattern.
Explore hub
Pattern1 visualizer
String Processing
Interactive walkthroughs for the String Processing pattern.
Explore hub
Pattern1 visualizer
Substring Scan
Interactive walkthroughs for the Substring Scan pattern.
Explore hub
Pattern2 visualizers
Top-Down DFS
Interactive walkthroughs for the Top-Down DFS pattern.
Explore hub
Pattern1 visualizer
Topological Sort
Interactive walkthroughs for the Topological Sort pattern.
Explore hub
Pattern1 visualizer
Topological Sort (Kahn's)
Interactive walkthroughs for the Topological Sort (Kahn's) pattern.
Explore hub
Pattern1 visualizer
Traversal
Interactive walkthroughs for the Traversal pattern.
Explore hub
Pattern1 visualizer
Trees / BFS
Interactive walkthroughs for the Trees / BFS pattern.
Explore hub
Pattern1 visualizer
Trees / Recursion
Interactive walkthroughs for the Trees / Recursion pattern.
Explore hub
Pattern1 visualizer
Trie / Prefix Tree
Interactive walkthroughs for the Trie / Prefix Tree pattern.
Explore hub
Pattern1 visualizer
Two Hash Maps
Interactive walkthroughs for the Two Hash Maps pattern.
Explore hub
Pattern3 visualizers
Two Pointer In-Place
Interactive walkthroughs for the Two Pointer In-Place pattern.
Explore hub
Pattern1 visualizer
Two Pointers
Interactive walkthroughs for the Two Pointers pattern.
Explore hub
Pattern1 visualizer
Two Pointers Gap
Interactive walkthroughs for the Two Pointers Gap pattern.
Explore hub
Pattern1 visualizer
Two Pointers Interleave
Interactive walkthroughs for the Two Pointers Interleave pattern.
Explore hub
Pattern1 visualizer
Two Pointers Merge
Interactive walkthroughs for the Two Pointers Merge pattern.
Explore hub
Pattern1 visualizer
Two Pointers Reset
Interactive walkthroughs for the Two Pointers Reset pattern.
Explore hub
Pattern1 visualizer
Two Pointers with Running Max
Interactive walkthroughs for the Two Pointers with Running Max pattern.
Explore hub
Pattern1 visualizer
Two Stacks
Interactive walkthroughs for the Two Stacks pattern.
Explore hub
Pattern1 visualizer
Unbounded Knapsack
Interactive walkthroughs for the Unbounded Knapsack pattern.
Explore hub
Pattern2 visualizers
Union Find (DSU)
Interactive walkthroughs for the Union Find (DSU) pattern.
Explore hub
Pattern1 visualizer
Union-Find
Interactive walkthroughs for the Union-Find pattern.
Explore hub