Back to Notes

Week 08 — Jul 13–19, 2026 — Advanced Graphs + Greedy

Week 08 (Jul 13 – Jul 19, 2026) — ADVANCED GRAPHS + GREEDY (Sprint S4 of 8)

14 problems. Timer on, solo, no peek till timer expires.

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


Goals This Week

  • 14 DSA problems on time, solo
  • SD problem: WhatsApp / Chat
  • Redis: Pub/Sub + Streams
  • DDIA: Ch7 Sharding pt2 (complete)
  • Sun Jul 19 scorecard + S5 direction

DSA Problem Set (14)

#ProblemLCDiffTargetSolved?TimeNotes
1Network Delay Time743M30 min☐Dijkstra
2Min Cost to Connect Points1584M30 min☐Prim's MST
3Cheapest Flights Within K Stops787M35 min☐Bellman-Ford / BFS+k
4Reconstruct Itinerary332H35 min☐Hierholzer Euler path
5Swim in Rising Water778H35 min☐Dijkstra / binary search+DFS
6Alien Dictionary269H40 min☐topo sort on chars
7Maximum Subarray53M15 min☐Kadane
8Jump Game55M20 min☐greedy reach
9Jump Game II45M25 min☐BFS-levels greedy
10Gas Station134M25 min☐total>=0 + reset start
11Hand of Straights846M25 min☐count map + min-heap
12Merge Triplets to Form Target1899M25 min☐filter then OR-merge
13Partition Labels763M25 min☐last-index greedy
14Valid Parenthesis String678M25 min☐low/high open count

Score: __/14 on time


SD + Redis + DDIA

ItemStatusNotes
SD: WhatsApp / Chat⬜online presence, delivery receipts, message fan-out, WebSocket
Redis: pub/sub + streams⬜PUBLISH/SUBSCRIBE, XADD/XREAD consumer groups
DDIA: Ch7 Sharding pt2⬜rebalancing, request routing

Daily Plan (compact)

  • Mon: Dijkstra/MST refresh + LC 743, 1584
  • Tue: LC 787, 332
  • Wed: LC 778, 269 + Redis pub/sub
  • Thu: LC 53, 55, 45 + SD Chat high-level
  • Fri: LC 134, 846, 1899 + DDIA Ch7.2
  • Sat: LC 763, 678 + Chat whiteboard
  • Sun: retro + scorecard + create S5 tracker

Decision Gate (Sun Jul 19)

ScoreVerdictS5
11–14Pass strong1-D DP (12) + Uber/Yelp + Redis GEO
8–10Patchy1-D DP + retry weak
<8FailPatch graphs/greedy in S5

Hours Log

DayPlannedActual
Mon–Sun~26h

Retro (fill Sun)

  • Solved on time: __/14 | Weakest: __ | SD: __ | Redis: __ | DDIA: __ | S5 decision: __