Learning path · Coding interviews

NeetCode 150 visualized,
pattern by pattern

Learn the 18 coding interview patterns behind the NeetCode 150 LeetCode problems. Each pattern has animated solutions, a brute-force comparison and Python code, so you learn the idea instead of memorizing answers.

18
Interview patterns
Python solutions
On every pattern page

STAGE 1 · PATTERNS 1–5

Core techniques

The tools that show up in almost every interview: hash maps, pointers, windows, stacks and binary search.

  1. 1

    Arrays & Hashing

    Learn arrays and hashing through animated coding interview problems, including Two Sum and anagrams. Compare approaches and explore Python solutions.
  2. 2

    Two Pointers

    Learn the two pointers technique with interactive palindrome, 3Sum and trapping rain water examples. Follow pointer decisions and compare with brute force.
  3. 3

    Sliding Window

    Explore fixed and variable sliding windows with interactive substring and subarray examples. Follow pointer moves, compare brute force and study Python solutions.
  4. 4

    Stack

    Learn stack interview patterns with animated bracket matching, reverse Polish notation and monotonic stack examples. Explore explanations and Python solutions.
  5. 5

    Binary Search

    Explore binary search interview problems with animated rotated arrays, Koko eating bananas and median examples. Follow the search boundaries step by step.

STAGE 2 · PATTERNS 6–9

Linked structures

Pointers, trees, prefix trees and heaps: problems where the shape of the data is the hint.

  1. 6

    Linked List

    Learn linked list interview patterns with pointer animations for reversal, cycle detection and LRU cache problems. Explore explanations and Python solutions.
  2. 7

    Trees

    Explore tree interview patterns with interactive DFS, BFS, binary search tree and path sum problems. Follow each step and study Python solutions.
  3. 8

    Tries

    Explore trie interview patterns with interactive prefix trees, wildcard search and Word Search II. Follow each letter and study Python solutions.
  4. 9

    Heap / Priority Queue

    Explore heap interview patterns with animated top-k, task scheduling and running median problems. Watch values swap up and down and study Python solutions.

STAGE 3 · PATTERNS 10–18

Advanced problem solving

Recursion, graphs, dynamic programming and the tricks that finish the list.

  1. 10

    Backtracking

    Explore backtracking interview patterns with growing recursion trees for subsets, combinations, permutations and N-Queens. Watch choices get made, undone and pruned.
  2. 11

    Graphs

    Explore graph interview patterns with animated BFS, DFS, union-find and topological sort on grids, courses and word ladders. Study each step and Python solutions.
  3. 12

    Advanced Graphs

    Explore advanced graph interview patterns: Dijkstra, Prim's minimum spanning tree, Bellman-Ford with stops, alien dictionary and itineraries. Follow every heap pop and study Python solutions.
  4. 13

    1-D Dynamic Programming

    Explore 1-D dynamic programming interview patterns: climbing stairs, house robber, coin change, word break and more. Watch the table fill and study Python solutions.
  5. 14

    2-D Dynamic Programming

    Explore 2-D dynamic programming interview patterns: unique paths, LCS, edit distance, regex matching and burst balloons. Watch each table fill cell by cell.
  6. 15

    Greedy

    Explore greedy interview patterns: Kadane's maximum subarray, jump games, gas station, partition labels and more, each with the reason the greedy choice is safe.
  7. 16

    Intervals

    Explore interval interview patterns on an animated timeline: insert and merge intervals, meeting rooms and interval queries. Sort, sweep and study Python solutions.
  8. 17

    Math & Geometry

    Explore math and geometry interview problems: rotate image, spiral matrix, fast powers, big-number multiplication and detect squares, animated step by step.
  9. 18

    Bit Manipulation

    Explore bit manipulation interview problems: XOR tricks, counting and reversing bits, and adding without plus, with every bit shown step by step.

More ways to learn

All algorithm, data structure and ML visualizersBrowse all 60 visualizers.