Skip to content

Commit e365d94

Browse files
author
Joseph Luce
authored
Fix run times.
1 parent 61fbee1 commit e365d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leetcode/hard/295_find_median_from_data_stream.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# 295. Find Median from Data Stream
22

33
## Sort solution
4-
- Runtime: O(log(N)) for addNum() and O(1) for findMedian(), in total O(Nlog(N))
4+
- Runtime: O(log(N)) for addNum() and O(N) for findMedian(), in total O(Nlog(N))
55
- Space: O(N)
66
- N = Number of elements in array
77

0 commit comments

Comments
 (0)