Skip to main content
πŸ“œ WAYPOINT LESSON

Checkpoint β€” Collapse, Then Walk

⭐⭐⭐ advanced⏳ 20 min readπŸ“ Lesson 261 of 281

The fusion executed at scale: collapse cycles into components, then DP the condensation. A DAG-assuming DP inflates cyclic inputs β€” that inflation is the graded failure.

Điểm kiểm tra β€” CΓ΄ Δ‘αΊ·c, rα»“i Δ‘i. One-way corridors with coins, cycles allowed, n ≀ 200000. The correct route: find strongly connected components, bank each component's coins, then DP over the condensation. The plausible wrong answer runs a longest-path DP assuming a DAG β€” on cyclic inputs it double-counts. Deterministic wrong-side failure, verified.