Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /