Count distinct merged intervals
Filed under Airtel
The question
Given a set of intervals, merge all overlapping intervals and return the count of the resulting distinct intervals.
No write-up yet. Related questions below have one.
Related Airtel questions
Collected from public candidate posts and coding forums. Updated Nov 2026.