DSA topic library

LeetCode DSA Topics | Interview Pattern Practice

Explore 161 DSA topic collections with difficulty, company and interview context.

Open Interview Tracker →
Explore

161 collections

Built from the live dataset
01 Array2,106 problems 02 String873 problems 03 Hash Map831 problems 04 Dynamic Programming701 problems 05 Math595 problems 06 Sorting555 problems 07 Greedy468 problems 08 DFS342 problems 09 Binary Search340 problems 10 Tree340 problems 11 BFS261 problems 12 Matrix260 problems 13 Stack251 problems 14 Bit Manipulation246 problems 15 Graph237 problems 16 Heap233 problems 17 Prefix Sum230 problems 18 Two Pointers229 problems 19 Counting186 problems 20 Simulation185 problems 21 Database178 problems 22 Binary Tree168 problems 23 Queue165 problems 24 Backtracking146 problems 25 Sliding Window146 problems 26 Linked List139 problems 27 Design130 problems 28 Enumeration124 problems 29 Union Find95 problems 30 Number Theory78 problems 31 Ordered Set71 problems 32 Segment Tree71 problems 33 Monotonic Stack69 problems 34 Divide and Conquer56 problems 35 Trie56 problems 36 Combinatorics51 problems 37 Bitmask48 problems 38 Recursion47 problems 39 Fenwick Tree42 problems 40 Memoization42 problems 41 Geometry41 problems 42 Binary Search Tree40 problems 43 Hash Function38 problems 44 Topological Sort38 problems 45 Shortest Path36 problems 46 String Matching34 problems 47 Tree DP30 problems 48 Rolling Hash28 problems 49 Game Theory26 problems 50 Data Stream24 problems 51 Interactive23 problems 52 Greatest Common Divisor22 problems 53 Brainteaser18 problems 54 Monotonic Queue18 problems 55 Directed Acyclic Graph17 problems 56 Bracket Sequences15 problems 57 Dijkstra15 problems 58 Knapsack DP15 problems 59 Minimax15 problems 60 Merge Sort13 problems 61 Binary Lifting12 problems 62 Prime Factorization12 problems 63 Randomized12 problems 64 Lowest Common Ancestor11 problems 65 Zero-Sum Game11 problems 66 Bipartite Graph10 problems 67 Counting Sort10 problems 68 Fermat's Little Theorem10 problems 69 Longest Increasing Subsequence10 problems 70 Z Algorithm10 problems 71 Iterator9 problems 72 KMP9 problems 73 Sieve9 problems 74 0-1 Knapsack8 problems 75 Prime Testing8 problems 76 Sweep Line8 problems 77 Bidirectional Search7 problems 78 Concurrency7 problems 79 Flow Network7 problems 80 Polygons7 problems 81 Quickselect7 problems 82 Strongly Connected Components7 problems 83 Suffix Array7 problems 84 Bucket Sort6 problems 85 Floyd Cycle Detection6 problems 86 Least Common Multiple6 problems 87 Longest Common Subsequence6 problems 88 Matching (Graph)6 problems 89 Minimum Spanning Tree6 problems 90 Probability & Statistics6 problems 91 Quicksort6 problems 92 Sqrt Decomposition6 problems 93 Treap6 problems 94 Boyer-Moore5 problems 95 Cartesian Tree5 problems 96 Graph Coloring5 problems 97 Pigeonhole Principle5 problems 98 Successive Shortest Path5 problems 99 A* Search4 problems 100 Aho-Corasick4 problems 101 Boyer–Moore Majority Vote Algorithm4 problems 102 Bubble Sort4 problems 103 Heuristic Search4 problems 104 Hungarian Algorithm4 problems 105 Impartial Game4 problems 106 Meet in the Middle4 problems 107 Reservoir Sampling4 problems 108 Shell4 problems 109 Suffix Automaton4 problems 110 Suffix Tree4 problems 111 Algorithm X3 problems 112 Boruvka3 problems 113 Dinic's Algorithm3 problems 114 Edmonds–Karp Algorithm3 problems 115 Eulerian Path3 problems 116 Inclusion-Exclusion Principle3 problems 117 Kruskal3 problems 118 Linear Algebra3 problems 119 Minimum-Cost Flow3 problems 120 MPM Algorithm3 problems 121 Nim Game3 problems 122 Prim3 problems 123 Push-Relabel Algorithm3 problems 124 Radix Sort3 problems 125 Sprague–Grundy Theorem3 problems 126 0-1 BFS2 problems 127 Bellman-Ford2 problems 128 Brute-Force Search2 problems 129 Floyd-Warshall2 problems 130 Hamiltonian Path2 problems 131 Manacher2 problems 132 Maximum Flow2 problems 133 Maximum Matching2 problems 134 Perfect Matching2 problems 135 Range Minimum/Maximum Query2 problems 136 Rejection Sampling2 problems 137 Semi-Eulerian Graph2 problems 138 Ternary Search2 problems 139 Articulation Point1 problems 140 Biconnected Components1 problems 141 Bridge (Graph)1 problems 142 Convex Hull1 problems 143 Dancing Links1 problems 144 Euler's Theorem1 problems 145 Euler's Totient Function1 problems 146 K Shortest Path1 problems 147 K-D Tree1 problems 148 Lexicographically Minimal String Rotation1 problems 149 Lyndon Factorization1 problems 150 Minimum Cut1 problems 151 Minimum Enclosing Circle1 problems 152 Multiple Knapsack1 problems 153 Nearest Pair of Points1 problems 154 Newton's Method1 problems 155 Persistent Data Structure1 problems 156 Planar Graph1 problems 157 Sparse Table1 problems 158 Splay Tree1 problems 159 Timsort1 problems 160 Tournament Sort1 problems 161 Triangulation1 problems