Dsa
Intervals
Warm-up
Event Time Conflict Detector
You are organizing events and need to check if any events conflict based on their scheduled times. Each event is represented by a start and an end time. Your task is to check whether there are any time conflicts among the events. Return 'Conflicted' if there is at least one conflict, otherwise return 'Clear'.
Input format:
A single line of space-separated integers representing the start and end times of events (e.g., '1 3 2 4 5 7').
Output format:
Return 'Conflicted' or 'Clear'.
Example:
Input:
1 3 2 4 5 7
Output:
Conflicted
Key concepts
intervalseventsconflicts
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