#252
Meeting Rooms
easy· Intervalsruns: 0Given an array of meeting time intervals where intervals[i] = [start_i, end_i], determine if a person could attend all the meetings without overlap.
sign in to paste and practice your own solution
wpm 0acc 100%time 0:000 / 270
class Solution:
def canAttendMeetings(
self, intervals: list[list[int]]
) -> bool:
intervals.sort()
for i in range(1, len(intervals)):
if intervals[i][0] < intervals[i - 1][1]:
return False
return True
click the box to focus · tab inserts 4 spaces · backspace to correct · esc to pause
desktop only
codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.
you can still browse problems and sections from your phone.