Question bank › Intervals
Dsa Intervals Easy

Free Time Slots

You have a list of busy intervals. Find the free time slots in a given range of time [start_time, end_time]. Each busy interval is defined by two integers: start and end. Print the free intervals in the form 'start end', one per line, where free intervals are the periods between the busy slots. Example: Input: 2 4 5 6 8 10 10 12 1 12 Output: 1 2 4 5 6 8

Key concepts

intervalsschedulingavailability

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
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.