Array & String Patterns
127 Core Coding Interview Patterns
The battle-tested map of Data Structures & Algorithms. Unlike high-level umbrellas, these 127 atomic patterns dissect the exact invariant, interview variations, company focus, and curated problems you need to recognize in technical rounds.
Click the checkbox next to any pattern to track your mastery. Stored locally in your browser.
No matching patterns found
Try relaxing your search terms or clearing the active filters.
Array & String Patterns
Pointers, Sliding Windows, Prefixes, and In-place Subarrays
Array & String Patterns
Array & String Patterns
Array & String Patterns
Array & String Patterns
Array & String Patterns
Array & String Patterns
Array & String Patterns
Array & String Patterns
Array & String Patterns
Array & String Patterns
Array & String Patterns
Array & String Patterns
Array & String Patterns
Array & String Patterns
Linked List Patterns
Classic recursion, two-pointer tricks, and state-saving
Linked List Patterns
Linked List Patterns
Linked List Patterns
Linked List Patterns
Linked List Patterns
Linked List Patterns
Heaps, Stacks & Toolkits
Real-time ranking, expression evaluation, spans, and hash maps
Heaps, Stacks & Toolkits
Heaps, Stacks & Toolkits
Heaps, Stacks & Toolkits
Heaps, Stacks & Toolkits
Heaps, Stacks & Toolkits
Heaps, Stacks & Toolkits
Heaps, Stacks & Toolkits
Heaps, Stacks & Toolkits
Heaps, Stacks & Toolkits
Recursion & Divide/Conquer
Recursive decision trees, memoization, binary split, and sorting
Recursion & Divide/Conquer
Recursion & Divide/Conquer
Recursion & Divide/Conquer
Recursion & Divide/Conquer
Recursion & Divide/Conquer
Recursion & Divide/Conquer
Recursion & Divide/Conquer
Recursion & Divide/Conquer
Recursion & Divide/Conquer
Recursion & Divide/Conquer
Dynamic Programming (Part 1)
0/1 Knapsack, Subsets, Unbounded, Min/Max paths, and Sequences
Dynamic Programming (Part 1)
Dynamic Programming (Part 1)
Dynamic Programming (Part 1)
Dynamic Programming (Part 1)
Dynamic Programming (Part 1)
Dynamic Programming (Part 1)
Dynamic Programming (Part 1)
Dynamic Programming (Part 1)
Dynamic Programming (Part 2)
Palindromes, Digit DP, Bitmasks, Interval DP, and Greedy Hybrids
Dynamic Programming (Part 2)
Dynamic Programming (Part 2)
Dynamic Programming (Part 2)
Dynamic Programming (Part 2)
Dynamic Programming (Part 2)
Dynamic Programming (Part 2)
Dynamic Programming (Part 2)
Dynamic Programming (Part 2)
Tree Traversals & Structures
Inorder, Preorder, Postorder, BFS, Diameter, LCA, and Tree building
Tree Traversals & Structures
Tree Traversals & Structures
Tree Traversals & Structures
Tree Traversals & Structures
Tree Traversals & Structures
Tree Traversals & Structures
Tree Traversals & Structures
Tree Traversals & Structures
Tree Traversals & Structures
Tree Traversals & Structures
Tree Traversals & Structures
Graphs & Backtracking
DFS, BFS, Topo Sort, Union-Find, Constraints, and Shortest Paths
Graphs & Backtracking
Graphs & Backtracking
Graphs & Backtracking
Graphs & Backtracking
Graphs & Backtracking
Graphs & Backtracking
Graphs & Backtracking
Graphs & Backtracking
Graphs & Backtracking
Graphs & Backtracking
Greedy, Bit Manipulation & Math
Interval scheduling, Jumps, Gas station, XOR tricks, and Primes
Greedy, Bit Manipulation & Math
Greedy, Bit Manipulation & Math
Greedy, Bit Manipulation & Math
Greedy, Bit Manipulation & Math
Greedy, Bit Manipulation & Math
Greedy, Bit Manipulation & Math
Greedy, Bit Manipulation & Math
Greedy, Bit Manipulation & Math
Greedy, Bit Manipulation & Math
Advanced Strings, Tries & Segment Trees
KMP, Rabin-Karp, Prefix/Bitwise Tries, and Range Query trees
Advanced Strings, Tries & Segment Trees
Advanced Strings, Tries & Segment Trees
Advanced Strings, Tries & Segment Trees
Advanced Strings, Tries & Segment Trees
Advanced Strings, Tries & Segment Trees
Advanced Strings, Tries & Segment Trees
Advanced Strings, Tries & Segment Trees
Advanced Strings, Tries & Segment Trees
Advanced Strings, Tries & Segment Trees
Advanced Strings, Tries & Segment Trees
Matrix, Geometry & Simulation
Spiral, Rotate, Flood fill, Geometry formulas, and Turn systems
Matrix, Geometry & Simulation
Matrix, Geometry & Simulation
Matrix, Geometry & Simulation
Matrix, Geometry & Simulation
Matrix, Geometry & Simulation
Matrix, Geometry & Simulation
Matrix, Geometry & Simulation
Matrix, Geometry & Simulation
Matrix, Geometry & Simulation
Matrix, Geometry & Simulation
Matrix, Geometry & Simulation
Wildcards & LLD / Machine Coding
Fenwick/Sparse Table, Meet-in-the-Middle, LRU, Rate Limiter, and LLD
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Wildcards & LLD / Machine Coding
Frequently Asked Questions
What are the 127 Core Coding Patterns?
The 127 Core Coding Patterns break down interview Data Structures and Algorithms into atomic, repeatable problem-solving invariants across 12 sections: Arrays, Linked Lists, Heaps/Stacks, Recursion, Dynamic Programming, Trees, Graphs, Greedy/Math, Advanced Strings/Segment Trees, Matrix Simulation, Wildcards, and Low-Level Design (LLD).
How do the 127 core patterns differ from the standard 21 macro-patterns?
Standard platforms teach 21 high-level categories (e.g. Dynamic Programming or Binary Search). The 127 core patterns drill deeper into the specific atomic variants interviewers test (e.g., 0/1 Knapsack vs. Unbounded vs. Digit DP vs. Bitmask DP, or Standard Binary Search vs. Search on Answer Space).
How should I practice these 127 patterns?
Focus on understanding the core logic and variation triggers rather than memorizing code. Start with Sections 1 to 4 (Foundations, Arrays, Linked Lists, Trees), progress to Sections 5 to 8 (DP, Graphs, Greedy), and finalize with Sections 9 to 12 (Advanced Range Queries and Low-Level Design). Check off each pattern as you solve its example problems.
Does this curriculum cover Low-Level Design (LLD) and Machine Coding?
Yes. Section 12 specifically covers the 9 essential Object-Oriented and Low-Level Design patterns required in Tier-1 technical rounds: LRU/LFU Cache, Rate Limiting Token Buckets, In-Memory File Systems, Parking Lots, Snake Game Simulation, Twitter News Feeds, and Job Schedulers.