Pro DSA
- 1st Visit
- 0/120
- 2nd Visit
- 0/120
- Revise
- 0/120
012-D Dynamic Programming
0/20
Two dimensional DP stores the answer to a subproblem indexed by two parameters: most often a pair of prefixes of two strings, a cell of a grid, or a position combined…
Pattern guide02Shortest Paths & Topological Sort
0/15
Weighted graphs need more than plain BFS. Dijkstra's algorithm finds single source shortest paths when every weight is non negative, using a min heap in O((V + E) log…
Pattern guide03Union-Find (DSU)
0/12
A disjoint set union (DSU) maintains a partition of elements into groups and supports two operations: find, which returns the representative of an element's group, and…
Pattern guide04Trie
0/10
A trie stores strings character by character along paths from a shared root, so all words with a common prefix share the same nodes. Insertion and lookup take O(L) for…
Pattern guide05Intervals & Sweep Line
0/12
Interval problems describe ranges such as meetings, bookings, segments or trips. Sorting by start, or by end for greedy selection, brings overlapping ranges next to…
Pattern guide06Bit Manipulation
0/12
Bit manipulation treats an integer as a vector of independent bits. The core tools are x & (x 1) to clear the lowest set bit, x & x to isolate it, XOR to cancel equal…
Pattern guide07Advanced Trees (BST, LCA, Tree DP)
0/16
Tree problems at this level rely on three ideas beyond basic traversal. In a binary search tree, in order traversal visits keys in sorted order, which makes validation…
Pattern guide08Design Data Structures
0/10
Design problems ask you to implement a class whose operations must each meet a time bound, typically O(1) or O(log n). The work lies in choosing and combining…
Pattern guide09Mixed Practice
All patterns0/13
This set draws on every pattern in the Pro level, but the pattern label is deliberately hidden. In interviews and contests nobody tells you which technique applies, so…
Pattern guide