Question bank › Intervals
Dsa Intervals Warm-up

Flight Schedule Checker

You are planning a flight schedule for an airport and must ensure that no two flights overlap. Each flight is represented by a start and an end time. Your task is to determine if all flights can be scheduled without overlap. Return 'Safe' if no overlaps occur, otherwise return 'Unsafe'. Input format: A single line with space-separated integers indicating the start and end times of flights (e.g., '1 4 2 5 3 6'). Output format: Return 'Safe' or 'Unsafe'. Example: Input: 1 4 2 5 3 6 Output: Unsafe

Key concepts

intervalsflightsscheduling

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