Arc 2: The Linear Path (C++ for FAANG Interviews)
by Eric Wucrsman
$2
Arc 1 built your C++ and complexity foundations. Arc 2 is where the actual interview patterns start — and where most of your interview prep time should go, since arrays, hashing, and pointer techniques show up across the largest share of FAANG questions.
This arc covers 6 chapters:
Chapter 4 — Arrays & Strings
Memory layout & cache efficiency · rotation, reversal, partitioning · 2D arrays & matrix traversal · prefix sums & difference arrays · Kadane's algorithm · string manipulation · subarray vs. subsequence vs. substring
Chapter 5 — Two Pointers & Sliding Window
Opposite & same-direction pointers · fast & slow pointers (Floyd's) · fixed and variable-size windows · a decision guide for which pattern fits which problem
Chapter 6 — Hashing
Hash functions & collision handling · unordered_map vs. map · frequency counting · two-sum & complement lookup · anagram detection · custom hashing for pairs/structs · rolling hash (Rabin-Karp)
Chapter 7 — Linked Lists
Singly, doubly & circular lists · iterative & recursive reversal · fast & slow pointers · merging sorted lists (two and k-way) · cycle detection & removal
Chapter 8 — Stacks
The monotonic stack pattern · next greater/smaller element · expression evaluation & parentheses · stack-based iterative tree/graph traversal
Chapter 9 — Queues & Deques
Monotonic deque (sliding window maximum) · circular queue · BFS foundations, multi-source BFS, 0-1 BFS
Every section pairs the concept with real, numbered LeetCode problems and a worked approach — not just "here's the theory," but "here's exactly how you recognize and solve this in an interview."
Bonus: each of the 6 chapters ends with a unique access code — redeem it at dsadayone.com to unlock that chapter's collectible card.
🔜 Arc 3 picks up with trees and recursion. Go get it.