Bird
Raised Fist0

Given the sorted intervals [[1,5],[2,4],[3,6],[7,8]] and the final count of uncovered intervals is 3, which interval was covered?

hard🔄 Reverse Engineer Q9 of Q15
Intervals - Remove Covered Intervals
Given the sorted intervals [[1,5],[2,4],[3,6],[7,8]] and the final count of uncovered intervals is 3, which interval was covered?
A[1,5]
B[7,8]
C[3,6]
D[2,4]
Step-by-Step Solution
Solution:
  1. Step 1: Analyze coverage

    Interval [2,4] is fully contained within [1,5].
  2. Step 2: Check others

    [3,6] extends beyond [1,5], so not covered; [7,8] is separate.
  3. Step 3: Confirm count

    3 uncovered intervals means one covered, which is [2,4].
  4. Final Answer:

    Option D -> Option D
  5. Quick Check:

    Only [2,4] is covered by [1,5] [OK]
Quick Trick: Covered intervals lie fully inside another interval [OK]
Common Mistakes:
MISTAKES
  • Confusing overlap with coverage
  • Picking intervals that partially overlap
Trap Explanation:
PITFALL
  • Candidates often mistake partial overlap for coverage.
Interviewer Note:
CONTEXT
  • Tests reverse reasoning from output to input intervals.
Master "Remove Covered Intervals" in Intervals

3 interactive learning modes - each teaches the same concept differently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Intervals Quizzes