Skip to content

Commit 600066c

Browse files
committed
Runtime: 143 ms (Top 61.21%) | Memory: 18.3 MB (Top 46.75%)
1 parent 50efdc4 commit 600066c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/K/Kth Largest Element in a Stream/Kth Largest Element in a Stream.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Runtime: 143 ms (Top 61.21%) | Memory: 18.3 MB (Top 46.75%)
12
class KthLargest:
23
def __init__(self, k: int, nums: List[int]):
34
self.k = k
@@ -15,4 +16,4 @@ def add(self, val: int) -> int:
1516
return self.get_kth_largest()
1617

1718
def get_kth_largest(self):
18-
return self.hp[0]
19+
return self.hp[0]

0 commit comments

Comments
 (0)