Pattern Directory
Master Core Algorithmic Patterns
Coding interviews test pattern recognition over memorization. Focus on fundamental patterns like Sliding Window, Fast & Slow Pointers, BFS/DFS, and 2D Dynamic Programming.
Need Concept Explanations & Templates?
Explore Our Curated Patterns & Master Study Guides
Deep-dive into canonical frameworks: 5-step DP breakdown, universal sliding window templates, binary search invariants, and system design checklists.
Algorithms 1955 problems
Array
Explore pattern problems
Algorithms 781 problems
String
Explore pattern problems
Algorithms 744 problems
Hash Table
Explore pattern problems
Algorithms 595 problems
Math
Explore pattern problems
Algorithms 580 problems
Dynamic Programming
Explore pattern problems
Algorithms 483 problems
Sorting
Explore pattern problems
Algorithms 433 problems
Greedy
Explore pattern problems
Algorithms 318 problems
Depth First Search
Explore pattern problems
Algorithms 313 problems
Binary Search
Explore pattern problems
Algorithms 260 problems
Matrix
Explore pattern problems
Techniques 246 problems
Bit Manipulation
Explore pattern problems
Algorithms 244 problems
Breadth First Search
Explore pattern problems
Algorithms 237 problems
Tree
Explore pattern problems
Algorithms 230 problems
Prefix Sum
Explore pattern problems
Techniques 229 problems
Two Pointers
Explore pattern problems
Data Structures 201 problems
Heap / Priority Queue
Explore pattern problems
Algorithms 186 problems
Counting
Explore pattern problems
Algorithms 185 problems
Simulation
Explore pattern problems
Algorithms 178 problems
Database
Explore pattern problems
Algorithms 170 problems
Graph Theory
Explore pattern problems
Data Structures 170 problems
Stack
Explore pattern problems
Algorithms 168 problems
Binary Tree
Explore pattern problems
Techniques 146 problems
Sliding Window
Explore pattern problems
Design 130 problems
System & Class Design
Explore pattern problems
Algorithms 124 problems
Enumeration
Explore pattern problems
Algorithms 108 problems
Backtracking
Explore pattern problems
Algorithms 91 problems
Union Find
Explore pattern problems
Algorithms 78 problems
Number Theory
Explore pattern problems
Data Structures 75 problems
Linked List
Explore pattern problems
Algorithms 71 problems
Ordered Set
Explore pattern problems
Algorithms 71 problems
Segment Tree
Explore pattern problems
Algorithms 69 problems
Monotonic Stack
Explore pattern problems
Algorithms 56 problems
Divide And Conquer
Explore pattern problems
Algorithms 56 problems
Trie
Explore pattern problems
Algorithms 51 problems
Combinatorics
Explore pattern problems
Algorithms 50 problems
Queue
Explore pattern problems
Algorithms 48 problems
Bitmask
Explore pattern problems
Algorithms 47 problems
Recursion
Explore pattern problems
Algorithms 42 problems
Binary Indexed Tree
Explore pattern problems
Algorithms 42 problems
Memoization
Explore pattern problems
Algorithms 41 problems
Geometry
Explore pattern problems
Algorithms 40 problems
Binary Search Tree
Explore pattern problems
Algorithms 38 problems
Hash Function
Explore pattern problems
Algorithms 38 problems
Topological Sort
Explore pattern problems
Algorithms 36 problems
Shortest Path
Explore pattern problems
Algorithms 34 problems
String Matching
Explore pattern problems
Algorithms 30 problems
Dp On Trees
Explore pattern problems
Algorithms 28 problems
Rolling Hash
Explore pattern problems
Algorithms 26 problems
Game Theory
Explore pattern problems
Algorithms 24 problems
Data Stream
Explore pattern problems
Algorithms 24 problems
Javascript
Explore pattern problems
Algorithms 23 problems
Interactive
Explore pattern problems
Algorithms 22 problems
Greatest Common Divisor
Explore pattern problems
Algorithms 20 problems
Euclidean Algorithm
Explore pattern problems
Algorithms 18 problems
Brainteaser
Explore pattern problems
Algorithms 18 problems
Monotonic Queue
Explore pattern problems
Algorithms 17 problems
Directed Acyclic Graph
Explore pattern problems
Algorithms 15 problems
Bracket Sequences
Explore pattern problems
Algorithms 15 problems
Dijkstra S Algorithm
Explore pattern problems
Algorithms 15 problems
Knapsack Problem
Explore pattern problems
Algorithms 15 problems
Minimax
Explore pattern problems
Algorithms 13 problems
Doubly Linked List
Explore pattern problems
Algorithms 13 problems
Merge Sort
Explore pattern problems
Algorithms 12 problems
Binary Lifting
Explore pattern problems
Algorithms 12 problems
Prime Factorization
Explore pattern problems
Algorithms 12 problems
Randomized
Explore pattern problems
Algorithms 11 problems
Lowest Common Ancestor
Explore pattern problems
Algorithms 11 problems
Zero Sum Game
Explore pattern problems
Algorithms 10 problems
Bipartite Graph
Explore pattern problems
Algorithms 10 problems
Counting Sort
Explore pattern problems
Algorithms 10 problems
Fermat S Little Theorem
Explore pattern problems
Algorithms 10 problems
Longest Increasing Subsequence
Explore pattern problems
Algorithms 10 problems
Z Algorithm
Explore pattern problems
Algorithms 9 problems
Algorithms
Explore pattern problems
Algorithms 9 problems
Iterator
Explore pattern problems
Algorithms 9 problems
Knuth Morris Pratt Algorithm
Explore pattern problems
Algorithms 9 problems
Sieve Theory
Explore pattern problems
Algorithms 8 problems
0 1 Knapsack
Explore pattern problems
Algorithms 8 problems
Primality Test
Explore pattern problems
Algorithms 8 problems
Sweep Line
Explore pattern problems
Algorithms 7 problems
Bidirectional Search
Explore pattern problems
Algorithms 7 problems
Concurrency
Explore pattern problems
Algorithms 7 problems
Flow Network
Explore pattern problems
Algorithms 7 problems
Pandas
Explore pattern problems
Algorithms 7 problems
Polygons
Explore pattern problems
Algorithms 7 problems
Quickselect
Explore pattern problems
Algorithms 7 problems
Suffix Array
Explore pattern problems
Algorithms 6 problems
Bucket Sort
Explore pattern problems
Algorithms 6 problems
Floyd S Cycle Finding Algorithm
Explore pattern problems
Algorithms 6 problems
Least Common Multiple
Explore pattern problems
Algorithms 6 problems
Longest Common Subsequence
Explore pattern problems
Algorithms 6 problems
Matching Graph
Explore pattern problems
Algorithms 6 problems
Minimum Spanning Tree
Explore pattern problems
Algorithms 6 problems
Prime Number Sieve
Explore pattern problems
Algorithms 6 problems
Probability And Statistics
Explore pattern problems
Algorithms 6 problems
Quicksort
Explore pattern problems
Algorithms 6 problems
Sqrt Decomposition
Explore pattern problems
Algorithms 6 problems
Treap
Explore pattern problems
Algorithms 5 problems
Boyer Moore String Search Algorithm
Explore pattern problems
Algorithms 5 problems
Cartesian Tree
Explore pattern problems
Algorithms 5 problems
Complete Knapsack
Explore pattern problems
Algorithms 5 problems
Graph Coloring
Explore pattern problems
Algorithms 5 problems
Kosaraju S Algorithm
Explore pattern problems
Algorithms 5 problems
Pigeonhole Principle
Explore pattern problems
Algorithms 5 problems
Successive Shortest Path Algorithm
Explore pattern problems
Algorithms 5 problems
Tarjan S Scc Algorithm
Explore pattern problems
Algorithms 4 problems
A Search
Explore pattern problems
Algorithms 4 problems
Aho Corasick Algorithm
Explore pattern problems
Algorithms 4 problems
Boyer Moore Majority Vote Algorithm
Explore pattern problems
Algorithms 4 problems
Bubble Sort
Explore pattern problems
Algorithms 4 problems
Heuristic Search
Explore pattern problems
Algorithms 4 problems
Hungarian Algorithm
Explore pattern problems
Algorithms 4 problems
Impartial Game
Explore pattern problems
Algorithms 4 problems
Meet In The Middle
Explore pattern problems
Algorithms 4 problems
Reservoir Sampling
Explore pattern problems
Algorithms 4 problems
Shell
Explore pattern problems
Algorithms 4 problems
Suffix Automaton
Explore pattern problems
Algorithms 4 problems
Suffix Tree
Explore pattern problems
Algorithms 3 problems
Algorithm X
Explore pattern problems
Algorithms 3 problems
Bor Vka S Algorithm
Explore pattern problems
Algorithms 3 problems
Dinic S Algorithm
Explore pattern problems
Algorithms 3 problems
Edmonds Karp Algorithm
Explore pattern problems
Algorithms 3 problems
Eulerian Circuit
Explore pattern problems
Algorithms 3 problems
Eulerian Path
Explore pattern problems
Algorithms 3 problems
Inclusion Exclusion Principle
Explore pattern problems
Techniques 3 problems
Intervals
Explore pattern problems
Algorithms 3 problems
Kruskal S Algorithm
Explore pattern problems
Algorithms 3 problems
Linear Algebra
Explore pattern problems
Algorithms 3 problems
Minimum Cost Flow
Explore pattern problems
Algorithms 3 problems
Mpm Algorithm
Explore pattern problems
Algorithms 3 problems
Nim Game
Explore pattern problems
Algorithms 3 problems
Prim S Algorithm
Explore pattern problems
Algorithms 3 problems
Push Relabel Algorithm
Explore pattern problems
Algorithms 3 problems
Radix Sort
Explore pattern problems
Algorithms 3 problems
Sprague Grundy Theorem
Explore pattern problems
Algorithms 2 problems
0 1 Bfs
Explore pattern problems
Dynamic Programming 2 problems
1-D Dynamic Programming
Explore pattern problems
Data Structures 2 problems
Arrays & Hashing
Explore pattern problems
Algorithms 2 problems
B Zout S Lemma
Explore pattern problems
Algorithms 2 problems
Bellman Ford Algorithm
Explore pattern problems
Algorithms 2 problems
Brute Force Search
Explore pattern problems
Algorithms 2 problems
Extended Euclidean Algorithm
Explore pattern problems
Algorithms 2 problems
Floyd Warshall Algorithm
Explore pattern problems
Algorithms 2 problems
Hamiltonian Path
Explore pattern problems
Algorithms 2 problems
Manacher
Explore pattern problems
Algorithms 2 problems
Maximum Flow
Explore pattern problems
Algorithms 2 problems
Maximum Matching
Explore pattern problems
Algorithms 2 problems
Perfect Matching
Explore pattern problems
Algorithms 2 problems
Range Minimum Maximum Query
Explore pattern problems
Algorithms 2 problems
Rejection Sampling
Explore pattern problems
Algorithms 2 problems
Semi Eulerian Graph
Explore pattern problems
Algorithms 2 problems
Sort
Explore pattern problems
Algorithms 2 problems
Strongly Connected Component
Explore pattern problems
Algorithms 2 problems
Ternary Search
Explore pattern problems
Data Structures 2 problems
Trees
Explore pattern problems
Algorithms 1 problems
Articulation Point
Explore pattern problems
Algorithms 1 problems
Biconnected Component
Explore pattern problems
Algorithms 1 problems
Bridge Graph
Explore pattern problems
Algorithms 1 problems
Convex Hull
Explore pattern problems
Algorithms 1 problems
Dancing Links
Explore pattern problems
Algorithms 1 problems
Euler S Theorem
Explore pattern problems
Algorithms 1 problems
Euler S Totient Function
Explore pattern problems
Algorithms 1 problems
Eulerian Graph
Explore pattern problems
Data Structures & Algorithms 1 problems
Graphs
Explore pattern problems
Algorithms 1 problems
Heap
Explore pattern problems
Algorithms 1 problems
K D Tree
Explore pattern problems
Algorithms 1 problems
K Shortest Path
Explore pattern problems
Algorithms 1 problems
Lexicographically Minimal String Rotation
Explore pattern problems
Algorithms 1 problems
Lyndon Factorization
Explore pattern problems
Mathematics 1 problems
Math & Geometry
Explore pattern problems
Algorithms 1 problems
Minimum Cut
Explore pattern problems
Algorithms 1 problems
Minimum Enclosing Circle
Explore pattern problems
Algorithms 1 problems
Mixed Knapsack
Explore pattern problems
Algorithms 1 problems
Multiple Knapsack
Explore pattern problems
Algorithms 1 problems
Nearest Pair Of Points
Explore pattern problems
Algorithms 1 problems
Newton S Method
Explore pattern problems
Algorithms 1 problems
Persistent Data Structure
Explore pattern problems
Algorithms 1 problems
Planar Graph
Explore pattern problems
Algorithms 1 problems
Sparse Table
Explore pattern problems
Algorithms 1 problems
Splay Tree
Explore pattern problems
Algorithms 1 problems
Timsort
Explore pattern problems
Algorithms 1 problems
Tournament Sort
Explore pattern problems
Algorithms 1 problems
Triangulation
Explore pattern problems
Data Structures 1 problems
Tries
Explore pattern problems