Back to Notes

Week 06 — Jun 29–Jul 5, 2026 — Backtracking

Week 06 (Jun 29 – Jul 5, 2026) — BACKTRACKING (Sprint S2 of 8)

Sprint goal: DSA + HLD/SD + Redis done by Aug 15. This week: Backtracking (9). Timer on, solo, no peek till timer expires.

→ Curriculum: [[Coach/project_dsa_sd_curriculum]] | Coach state: [[synthesis/Coach Hub]]


Goals This Week

  • 9 DSA problems on time, solo
  • SD problem: Rate Limiter ✅ 2026-07-02 — notes in [[Rate Limiter]] (5 algos, HLD, distributed race/sync, Lyft rules, OSI levels)
  • SD problem: Design Key-Value Store (whiteboard cold)
  • SD problem: Consistent Hashing
  • Redis: TTL/expiry + token-bucket implementation
  • DDIA: Ch6 Replication (pairs with KV store)
  • Sun Jul 5 scorecard + S3 direction

DSA Problem Set (9)

#ProblemLCDiffTargetSolved?TimeBugs / notes
1Subsets78M20 min☐template: choose/explore/un-choose
2Combination Sum39M25 min☐reuse allowed → don't advance idx
3Permutations46M25 min☐used[] vs swap
4Subsets II90M25 min☐sort + skip dup at same level
5Combination Sum II40M30 min☐dup skip + advance idx
6Word Search79M30 min☐grid DFS + visited mark/unmark
7Palindrome Partitioning131M30 min☐isPalindrome helper + cut points
8Letter Combinations of Phone No.17M20 min☐digit→letters map
9N-Queens51H40 min☐col/diag/anti-diag sets

Score: __/9 on time


SD + Redis + DDIA

ItemStatusNotes
SD: Rate Limiter✅ Done 2026-07-02Full note: 5 algos, Redis INCR+EXPIRE, Lyft rules, headers, distributed race (Lua/sorted-set) + sync (centralized store), L7 vs L3. → [[Rate Limiter]]
SD: Design Key-Value Store🔵 this weekRequirements, single-node (hash index, WAL, LSM/SSTable), replication (quorum N/W/R), partitioning, conflict resolution (vector clocks), read-repair, hinted handoff. DDIA Ch5–6 territory.
SD: Consistent Hashing🔵 this weekRing, hash space, virtual nodes, add/remove node → minimal key movement, why modulo-N fails. → existing [[Consistent Hashing]] page for reference.
Redis: TTL + token-bucket⬜EXPIRE, INCR, atomic counter; token-bucket via Lua
DDIA: Ch6 Replication⬜leader-follower, multi-leader, leaderless, quorum, read-repair (pairs w/ KV store)

Daily Plan (compact)

  • Mon: theory block (backtracking template) + LC 78
  • Tue: LC 39, 46
  • Wed: LC 90, 40 + Redis TTL video
  • Thu: LC 79, 17 + SD Rate Limiter high-level
  • Fri: LC 131 + SD Rate Limiter deep + DDIA Ch6.2
  • Sat: LC 51 (hard) + Rate Limiter whiteboard cold
  • Sun: retro + scorecard + create S3 tracker

Decision Gate (Sun Jul 5)

ScoreVerdictS3
7–9Pass strongGraphs (13) + Twitter Feed + Redis sorted sets
5–6PatchyGraphs + retry weakest backtracking
<5FailRepeat Backtracking in S3

Hours Log

DayPlannedActual
Mon–Sun~24h

Retro (fill Sun)

  • Solved on time: __/9 | Weakest: __ | SD: __ | Redis: __ | DDIA: __ | S3 decision: __