Skip to content

Commit 0b13351

Browse files
authored
Merge pull request #2028 from RomanGirin/patch-1
Update 0295-find-median-from-data-stream.py
2 parents ac54414 + 68ccab2 commit 0b13351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/0295-find-median-from-data-stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def addNum(self, num: int) -> None:
1111
if self.large and num > self.large[0]:
1212
heapq.heappush(self.large, num)
1313
else:
14-
heapq.heappush(self.small, -1 * num
14+
heapq.heappush(self.small, -1 * num)
1515

1616
if len(self.small) > len(self.large) + 1:
1717
val = -1 * heapq.heappop(self.small)

0 commit comments

Comments
 (0)