Dsa
Intervals
Warm-up
Meeting Room Scheduler
You are tasked with scheduling meetings in a single room based on time intervals provided. Each meeting is represented by a start and an end time. Your goal is to determine if all meetings can be attended without any overlap. Return 'Possible' if all meetings can be scheduled without overlap, otherwise return 'Not Possible'.
Input format:
A single line of space-separated integers representing start and end times of meetings (e.g., '1 3 2 5 4 6').
Output format:
Return 'Possible' or 'Not Possible'.
Example:
Input:
1 3 2 5 5 7
Output:
Not Possible
Key concepts
intervalsschedulingmeetings
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