📜 WAYPOINT LESSON
Checkpoint — Prove It or Lose It
⭐⭐⭐ advanced⏳ 20 min read📍 Lesson 264 of 281
The interval greedy returns for a verdict: fix it so every test passes. The buggy by-start version is graded as the wrong side — your fix must beat it on the adversarial ordering.
Điểm kiểm tra — Chứng minh hoặc mất điểm. Maximum non-overlapping intervals, n ≤ 200000, with shared-endpoint overlap. The buggy sort-by-start greedy fails the adversarial ordering test. Fix the greedy (sort by end), keep the endpoint convention straight, and pass all four tests. In your solution notes: state the exchange argument in one line.