Data Structures & Algorithms MOC

A book-shaped table of contents for MAANG-interview DSA prep: Python language foundations, mathematical and algorithmic foundations, arrays/strings, linked structures, stacks/queues, trees, graphs, sorting/searching, dynamic programming, greedy algorithms, backtracking, bit manipulation, advanced data structures, advanced algorithms, interview problem patterns, and MAANG interview mastery — a book-length progression from fundamentals to Google/Meta/Amazon/Apple/Netflix/Microsoft (L4–L6) interview readiness.

Data Structures & Algorithms

If this were a book, this page is the table of contents. Each Part below is a chapter; each chapter links out to the concepts, designs, and platform notes that already exist elsewhere in this wiki instead of duplicating them. Unwritten chapters are listed as Planned rows, not empty files.

Parts

00 — Python Language Foundations

The language mechanics this entire book assumes fluency in before Part 01 even starts — automatic, no-look-up recall of how lists, dicts, comprehensions, and generators actually behave, so that later Parts can spend their attention on algorithmic reasoning instead of syntax.

01 — Mathematical & Algorithmic Foundations

The shared vocabulary every later Part assumes: what makes a solution an algorithm at all, how to measure its cost, how recursion actually executes, the discrete-math toolkit interview problems lean on, and the five design paradigms that recur across the whole book.

02 — Arrays & Strings

The highest-frequency interview surface — arrays, strings, and the traversal techniques (two pointers, sliding window, prefix sums, hashing) that turn brute-force scans into linear-time solutions.

03 — Linked Data Structures

Pointer-based structures where the core skill is manipulating links without losing a reference — most bugs here are dangling pointers, not algorithmic mistakes.

04 — Stack, Queue & Deque

LIFO and FIFO structures, plus the monotonic variants that turn a naive O(n²) next-greater-element scan into O(n).

05 — Trees

Hierarchical structures where traversal order — DFS variants vs. BFS — is the recurring decision point, plus the self-balancing and specialized trees that keep operations at O(log n).

06 — Graphs

Traversal generalizes directly from trees, with one addition: a graph can have cycles, so every algorithm here tracks visited state. This Part covers representation, traversal, ordering, shortest paths, connectivity, and flow.

07 — Sorting & Searching

Binary search and its ‘search on the answer’ generalization, plus the comparison-based and non-comparison sorting algorithms and their tradeoffs, and the selection algorithms that beat full sorting when only an order statistic is needed.

08 — Dynamic Programming

The single highest-leverage pattern in MAANG interviews — recognizing overlapping subproblems and optimal substructure, then choosing top-down memoization or bottom-up tabulation, across the recurring problem shapes: knapsack, LIS/LCS, interval, digit, and bitmask DP.

09 — Greedy Algorithms

Problems where a locally optimal choice at each step provably leads to a globally optimal solution — the hard part is proving the greedy-choice property holds before trusting it.

Exhaustive search with pruning — building a solution incrementally and abandoning a branch the moment it can’t lead anywhere, across the canonical constraint-satisfaction and enumeration problems.

11 — Bit Manipulation

Low-level bitwise operations and the tricks built on them — a small, high-signal toolkit that turns a handful of interview problems from O(n) space into O(1).

12 — Advanced Data Structures

Specialized structures that show up less often but signal depth when they’re the right tool — from static range-query structures to the probabilistic sketches behind large-scale systems.

13 — Advanced Algorithms

Techniques past the standard interview loop but common at the L6+ bar or in specialized domains — optimized divide-and-conquer, computational geometry, advanced string matching, and algorithms over algebraic structures.

14 — Interview Problem Patterns

The pattern-recognition layer that sits on top of every data structure and algorithm above — eighteen recurring problem shapes that, once recognized, turn an unfamiliar prompt into a known template. See Fan-Out/Fan-In for a production-grade, fully-worked example of the K-way Merge pattern (Ch. 8) applied to real distributed aggregation.

15 — MAANG Interview Mastery

The meta-layer above data structures and patterns — how to perform under interview conditions: communicating while you think, recognizing which of the preceding 138 chapters applies, and converting practice into a repeatable, revisable system before interview day.

Metadata

AuthorAmit Singh
Scopedata-structures-algorithms

Local graph

Full graph →

Related notes