We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be85556 commit 9e962d8Copy full SHA for 9e962d8
meeting-rooms/samthekorean.py
@@ -0,0 +1,9 @@
1
+# Time complexity : O(nlog(n))
2
+# Space complexity : O(1)
3
+class Solution:
4
+ def canAttendMeetings(self, intervals: List[List[int]]) -> bool:
5
+ intervals.sort()
6
+ for i in range(len(intervals) - 1):
7
+ if intervals[i][1] > intervals[i + 1][0]:
8
+ return False
9
+ return True
0 commit comments