Back to Notes

Week 03 — May 25–31, 2026 — Trees pt 1

Week 03 (May 25 – May 31, 2026) — TREES PT 1

13 problems (NeetCode Trees Easy + Medium). Timer on, solo, no hints until timer expires. Carry-over: SD theory (Async + Resiliency + Essentials), Drill Qs rehearsal, STAR reps. First referral DMs go out this week. Decision gate Sun May 31.

→ Full curriculum: [[Coach/project_dsa_sd_curriculum]] → Coach state: [[synthesis/Coach Hub]]


Goals This Week

  • Theory block Trees fundamentals before first problem (DFS recursive, BFS iterative, BST properties) ✅ 2026-05-31
  • 13 DSA problems on time, solo — timer rules same as W1/W2 ✅ 2026-05-31
  • SD theory: Async Systems + Resiliency + Essentials (3 sections, ~6.75h carry from W2) ✅ 2026-05-31
  • Drill Qs rehearsed: "Why leaving HCL?" + "Expected CTC?" + "2-min intro" — all 3 fluent by Wed May 27 ✅ 2026-05-31
  • STAR reps: 3 minimum (WebSocket geo + AskTGE mixed)
  • Referral DMs: Splunk contacts (5) + Amazon contacts (5) — sent by Sun May 31
  • Sun May 31 scorecard completed + W4 direction set

DSA Problem Set (13)

Rules: timer on, no editorial/AI/peek until timer expires. One sitting per problem. Mark fail if timer expires.

#PatternProblemLCDiffTargetSolved?TimeBugs / notes
1TreesInvert Binary Tree226E10 minYes3:00
2TreesMaximum Depth of Binary Tree104E10 minYes1:30
3TreesDiameter of Binary Tree543E15 minYes5:00Used list [0] for nonlocal state — prefer self.max_d or nonlocal in interviews
4TreesBalanced Binary Tree110E15 minYes5:00
5TreesSame Tree100E10 minYes3:403 null checks → collapse to: if not n1 or not n2: return n1 == n2
6TreesSubtree of Another Tree572E20 minYes18:00Bug: split recursive calls into separate ifs → returns None. Fixed to single or return.
7TreesLowest Common Ancestor of BST235M20 minYes7:00Iterative O(1) space — canonical senior solution. Prefer iterative over recursive here.
8TreesBinary Tree Level Order Traversal102M25 minYes5:00range(len(queue)) snapshot pattern clean. Textbook BFS level order.
9TreesBinary Tree Right Side View199M25 minYes5:00BFS i == size-1 pick. Know DFS alt: right-first DFS, first node at each depth = right view.
10TreesCount Good Nodes in Binary Tree1448M25 minYes7:00Self-corrected: nonlocal → return pattern. Use max(max_val, node.val) outside if block.
11TreesValidate Binary Search Tree98M25 minYes4:00Valid-range pattern. Default params expose internals — use private helper in prod.
12TreesKth Smallest Element in BST230M25 minYes6:00Iterative in-order (explicit stack). Canonical. In-order = ascending in BST.
13TreesConstruct Binary Tree from Preorder + Inorder105M40 minYes15:00nonlocal pre_idx justified (global sequential counter). Know 4-bounds canonical too.

Score: 13/13 solved on time


SD Theory Tracker (carry from W2)

SectionStatusNotes
Caching (4 topics)✅ DoneCarried from W2 — done 2026-05-25
Asynchronous Systems (4 topics)✅ DoneAsync Processing / Message Queues / Kafka Essentials / Real-time PubSub
Resiliency (5 topics)✅ DoneDesigning for Resiliency / Load Balancers / Circuit Breakers / Data Redundancy / Leader Election
Essentials (5 topics)✅ DoneBloom Filters / Consistent Hashing / Client-server & Protocols / Blob Storage & S3 / Intro to Big Data

Drill Questions Tracker (carry from W2 — drafted, need rehearsal)

QuestionDrafted?Rehearsed?
"Why are you leaving HCL?"✅ Done⬜
"What's your expected CTC?"✅ Done⬜
"Walk me through your background (2 min)"✅ Done⬜

Target: all 3 rehearsed fluently by Wed May 27.


BA Drills Tracker (reduced target — 3 reps/week minimum)

StoryW2 repsW3 targetW3 doneNotes
WebSocket Geo (TGE Logistics)3/102 reps0250+ drivers, sub-second, hybrid hydration
AskTGE (DynamoDB + perf audit)1/51 rep090% token cost ↓, 50× bandwidth ↓, 2s→200ms

Referral Outreach Tracker (W3 — first DMs)

ContactSourceDM sent?Reply?
Contact 1Splunk conf24⬜—
Contact 2Splunk conf24⬜—
Contact 3Splunk conf24⬜—
Contact 4Splunk conf24⬜—
Contact 5Splunk conf24⬜—
Contact 6Amazon referral⬜—
Contact 7Amazon referral⬜—
Contact 8Amazon referral⬜—
Contact 9Amazon referral⬜—
Contact 10Amazon referral⬜—

Daily Plan

Mon May 25

  • Theory block: Trees fundamentals (1.5h) — DFS recursive, BFS with deque, BST properties (valid range pattern), height vs depth, when to use iterative vs recursive
  • Drill Qs rehearsal: "Why leaving HCL?" out loud x3 (15 min)
  • Target: 2h

Tue May 26

  • LC 226, 104, 543, 110 (4 easies, ~50 min + review)
  • SD theory: Async Systems pt 1 (~1h)
  • Drill Qs: "Expected CTC?" + "2-min intro" rehearsal (20 min)
  • Target: 3h

Wed May 27

  • LC 100, 572, 235 (3 problems, ~50 min + review)
  • SD theory: Async Systems pt 2 (~1h)
  • WebSocket geo STAR (2 reps)
  • Target: 3h

Thu May 28

  • LC 102, 199 (2 mediums, ~50 min + review)
  • SD theory: Resiliency pt 1 (~1h)
  • AskTGE STAR (1 rep)
  • Target: 3h

Fri May 29

  • LC 1448, 98 (2 mediums, ~50 min + review)
  • SD theory: Resiliency pt 2 (~1h)
  • Referral DMs: Splunk contacts (5 DMs sent)
  • Target: 3h

Sat May 30 — Heavy day

  • LC 230, 105 (2 mediums, ~1.5h + review)
  • SD theory: Essentials (~2.5h)
  • Referral DMs: Amazon contacts (5 DMs sent)
  • LC 1448, 98 review if needed
  • Target: 6h

Sun May 31 — Retro day

  • Write scorecard + W4 direction (run /coach scorecard)
  • SD review / catch-up if any section incomplete
  • Target: 2h

Decision Gate (Sun May 31)

Score on timeVerdictW4 plan
11–13Pass — strongTrees pt 2 (Hard problems + advanced patterns)
8–10Pass — patchyTrees pt 2 + retry weakest Trees pt 1 problems
< 8FailRepeat Trees pt 1 in W4, Trees pt 2 → W5

Hours Log

DayPlannedActualWhat blocked?
Mon2h
Tue3h
Wed3h
Thu3h
Fri3h
Sat6h
Sun2h
Total22h

Week Retro (fill Sun May 31 night)

Scorecard

  • Problems solved on time: 13/13
  • Total time: ~86 min vs target ~265 min (32% of allocated time)
  • Weakest pattern: nonlocal mutation (LC 1448 — self-corrected mid-session)
  • Strongest pattern: BFS level-order + BST traversal (all under 10 min)

SD theory completed

  • Sections done: 3/3 (Async + Resiliency + Essentials) ✅

BA + Drill Qs + Referrals

  • WebSocket geo reps: 0/2
  • AskTGE reps: 0/1
  • Drill Qs rehearsed: 3/3 ✅
  • Referral DMs sent: 0/10 → CARRIED TO W4 (deadline Jun 7)

What slipped

STAR reps (3rd week running) + referral DMs (3rd week running). Root cause: avoidance, not time. "Not ready" feeling for DMs is not a real condition — no readiness threshold exists for sending a 3-sentence LinkedIn message.

What surprised me

SD theory videos require more active discipline than DSA. Sitting through video content is harder to sustain than problem-solving. Fix for W4: 25-min Pomodoro per SD topic, not marathon sessions.

W4 decision

PASS STRONG → Trees pt 2 (7 problems). Referral DMs mandatory by Jun 7. 1 paid mock scheduled.

One thing to fix in W4

Send all 10 referral DMs before W4 DSA problems start.