Day 58 — Revision: Graphs week

revision day · graphs · blank-file recall

Tonight's goal: choose your three weakest graph problems, name the node, edge, and traversal in under 2 minutes, then re-solve from a blank file with no hints.

Tonight's protocol

Use the revision-day protocol, filled in for the graphs block.

Re-solve your weakest problems from a blank file with no hints; a problem only counts as revised when it compiles and passes on the first or second run.

  1. 0:00-0:05 — Warm up, choose, start. Answer the MCQs fast, pick your three weakest from the menu, open a blank file for the first problem, and start solving by minute 5.
  2. Each problem, 0:00-0:02 — Speak first. Say the node, edge, traversal or data structure, brute force, and target complexity before typing.
  3. Each problem, 0:02-0:27 — Attempt cold. Code from memory only. Do not open notes, stored code, hints, comments, or videos.
  4. Each problem, 0:27-0:32 — Run twice. Submit or run at most two times. A later pass is useful practice, but it is not revision credit.
  5. Each problem, 0:32-0:35 — Log honestly. If it passes, tick revision done. If it fails, write WA: <root cause> and keep it in the queue.
  6. Final 5 minutes — Gate. Run the self-check below. Any miss chooses the next revision target.

The problem menu

Pick your 3 weakest from this menu. Re-solve from a blank file, no hints. Before each solve, run the 2-minute drill: node, edge, traversal choice.

ProblemPattern name
Number of Islandsgrid DFS / flooding a grid
Clone Graphgraph cloning / cloning with a map
Course Scheduletopological sort / prerequisites and cycles
Pacific Atlantic Water Flowreverse flood fill / search backwards
Word Ladderimplicit graph BFS
Network Delay TimeDijkstra / BFS with weights

Warm-up MCQs

Cap this at 5 minutes. Missed answers are signals for today's weak list.

1. Which invariant belongs to Number of Islands?

2. A cycle creates repeated copies. Which invariant prevents it?

3. A Course Schedule cycle leaves what signal after Kahn's peel?

4. A solution starts downhill from every cell. Which invariant was missed?

5. Before BFS on Word Ladder, what must be named?

6. Why does Network Delay Time need Dijkstra instead of plain BFS?

Self-check gate

Pass bar

Pass tonight only if all three are true:

Failure path: do not mark revision done. Add the failed problem to the next revision queue, write WA: <root cause>, and compare only after the two-run test is over.