Skip to content

Commit

Permalink
[295. Find Median from Data Stream][Accepted]committed by LeetCode Ex…
Browse files Browse the repository at this point in the history
…tension
  • Loading branch information
seaskymonster committed Sep 30, 2016
1 parent 43cbf8e commit 178718b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 295-Find-Median-from-Data-Stream/solution.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ public class MedianFinder {
public PriorityQueue<Integer> maxHeap;

MedianFinder(){
maxHeap = new PriorityQueue<>();
minHeap = new PriorityQueue<>();
maxHeap = new PriorityQueue<>(Collections.reverseOrder());
}

Expand Down

0 comments on commit 178718b

Please sign in to comment.