Skip to content
LakeBench
ProblemsCommunityPricing
Sign inStart practicing

Meeting Rooms

Python data engineering interview problem. Difficulty: intermediate. Pattern: Intervals. About 14 minutes. Part of the Pro drill bank.

Whether a person can attend all meetings. Treat this as a production helper: match the contracted return shape, including empty and duplicate inputs.

Implement can_attend_meetings(intervals: list) -> bool.

Requirements

  • Empty list returns True.

Constraints

  • Touching endpoints are fine (back-to-back).

Examples

Input: can_attend_meetings([[0, 30], [5, 10], [15, 20]]) Output: False All overlap the long meeting.

Topics: lakebench, python, meetings, overlap.

More Python interview questions · All interview problems · Learn data engineering

intermediate

Meeting Rooms

Interview-style drill: Whether a person can attend all meetings.

Implement `can_attend_meetings(intervals: list) -> bool`. Example: `[[0, 30], [5, 10], [15, 20]]` → `False`. Keep the harness.