K34

Meeting Rooms I (Overlap Check)

Junior Level Candidate
Target Time: 15 - 20 Minutes
Type: BOOLEAN

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]]) -> bool

Input & Output Contract

Output Rule:True veya False.

System Constraints

0 <= araliklar.length <= 10^4
0 <= baslangic < bitis <= 10^6

Example 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 -> True

Example Test Scenarios (3)

Example 1: Çakışma Var
Input:[[[0,30],[5,10],[15,20]]]
Expected Output:false
Example 2: Çakışma Yok
Input:[[[7,10],[2,4]]]
Expected Output:true
Example 3: Empty List
Input:[[]]
Expected Output:true
Loading Python Editor...
Input Parameters
[
  [
    [
      0,
      30
    ],
    [
      5,
      10
    ],
    [
      15,
      20
    ]
  ]
]
Expected Output
false