Dsa
Intervals
Warm-up
Event Scheduler
You are developing a simple event scheduler. Events are represented by start and end times. You need to merge any overlapping events into a single event. The input starts with an integer n, followed by n lines containing the start and end times of events. Output the merged events as start and end times.
Example:
Input:
3
09:00 10:00
09:15 11:00
11:30 12:00
Output:
09:00 11:00
11:30 12:00
Key concepts
intervalsschedulingmerged intervals
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now