K34
Meeting Rooms I (Overlap Check)
Problem Statement & Objective
Given an array of meeting time intervals where intervals[i] = [starti, endi], determine if a person could attend all meetings.
Function Signature (Python)
meeting_rooms_i_overlap_check(intervals: list[list[int]]) -> boolInput & Output Contract
Output Rule:True veya False.
System Constraints
0 <= araliklar.length <= 10^4
0 <= baslangic < bitis <= 10^6Example Execution Walkthrough
araliklar = [[0, 30], [5, 10], [15, 20]] -> [0, 30] diğerleriyle çakışır -> False
araliklar = [[7, 10], [2, 4]] -> [2, 4] ve [7, 10] çakışmaz -> TrueExample Test Scenarios (3)
Example 1: Çakışma Var
Input:
[[[0,30],[5,10],[15,20]]]Expected Output:
falseExample 2: Çakışma Yok
Input:
[[[7,10],[2,4]]]Expected Output:
trueExample 3: Empty List
Input:
[[]]Expected Output:
true