Also reported as LeetCode 56
Amazon coding question, reconstructed from 5 candidate reports (October 2025 to June 2026). Tests: intervals and sweep lines. Candidates reported 3 follow-ups. The write-up includes a Python solution that passes 7 test cases.