Skip to content
L5 Prep

Week 04 โ€” DP, backtracking, and design-y coding

No day-by-day file exists for this week yet โ€” the plan summary below is the source of truth until one is added.

Day-by-day plan not written yet

Only weeks/week-04.md can supply the day-by-day problem list for this week, and it does not exist. Everything below is this week's entry in 01-plan-8-weeks.md, unmodified. Nothing here is invented.

Create weeks/week-04.md at the repository root and this page becomes the full week detail automatically.

Week goals ticked0 / 0

Ticks are saved in this browser only.

Goal: clear the categories most people avoid.

  • Topics: 1-D DP, 2-D DP, knapsack variants, LIS (both O(nยฒ) and O(n log n)), interval DP, bitmask DP (Google does ask), backtracking/permutations, greedy + exchange argument.
  • 14โ€“16 problems. Every DP problem: write the recurrence in words first, then memoized recursion, then bottom-up. Never jump straight to a table.
  • Object-design coding: LRU cache, LFU cache, an iterator class, a rate limiter, a file system, an in-memory key-value store with TTL. These test API design, which is an L5 signal.
  • System design: consistency models, CAP in practice, message queues, pub/sub, idempotency, rate limiting.
  • First timed mock coding interview with a human or an AI interviewer. Record it.

Exit criteria: you can go from problem statement โ†’ correct recurrence โ†’ working bottom-up DP in 25 minutes for a standard medium.