linkjobai / Interval Problems: Meeting Rooms I and II
0 likes
0 forks
1 files
Last active 5 days ago
Interview prep notes
Interval Problems: Meeting Rooms I and II
Interval questions come up constantly because they test sorting, greedy reasoning and heaps all at once.
Meeting Rooms I (can one person attend all meetings?)
Sort by start time and check whether any meeting starts before the previous one ends.
def can_attend(intervals):
Newer
Older