Skip to content

Commit b305f8f

Browse files
authored
Update 253-Meeting-Rooms-ii.py
It appears that Leetcode updated this question where they removed the custom definitions for this problem. Before the definition was: """ class Interval (Object): def __init__ (self, start, end): self.start = start self.end = end def minMeetingRooms(self, intervals): start = sorted([i.start for i in intervals]) end = sorted([i.end for i in intervals]) """ Without the custom definition the current solution needs to be updated to use indexes as follows: """ start = sorted([i[0] for i in intervals]) end = sorted([i[1] for i in intervals]) """
1 parent c17e82c commit b305f8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/253-Meeting-Rooms-ii.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ class Solution:
55
"""
66

77
def minMeetingRooms(self, intervals):
8-
start = sorted([i.start for i in intervals])
9-
end = sorted([i.end for i in intervals])
8+
start = sorted([i[0] for i in intervals])
9+
end = sorted([i[1] for i in intervals])
1010

1111
res, count = 0, 0
1212
s, e = 0, 0

0 commit comments

Comments
 (0)