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 e1fb8ca commit e0b058bCopy full SHA for e0b058b
leetcode/hard/295_find_median_from_data_stream.md
@@ -1,7 +1,7 @@
1
# 295. Find Median from Data Stream
2
3
## Sort solution
4
-- Runtime: O(Nlog(N)) for addNum() and O(1) for findMedian()
+- Runtime: O(log(N)) for addNum() and O(1) for findMedian(), in total O(Nlog(N))
5
- Space: O(N)
6
- N = Number of elements in array
7
@@ -35,7 +35,7 @@ class MedianFinder:
35
```
36
37
## Two Heap Solution
38
39
40
41
0 commit comments