From 178718b291f477271be33c7723103b98193463b7 Mon Sep 17 00:00:00 2001 From: seaskymonster Date: Fri, 30 Sep 2016 02:17:44 -0700 Subject: [PATCH] [295. Find Median from Data Stream][Accepted]committed by LeetCode Extension --- 295-Find-Median-from-Data-Stream/solution.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/295-Find-Median-from-Data-Stream/solution.java b/295-Find-Median-from-Data-Stream/solution.java index d8a82e8..d2881f3 100644 --- a/295-Find-Median-from-Data-Stream/solution.java +++ b/295-Find-Median-from-Data-Stream/solution.java @@ -3,7 +3,7 @@ public class MedianFinder { public PriorityQueue maxHeap; MedianFinder(){ - maxHeap = new PriorityQueue<>(); + minHeap = new PriorityQueue<>(); maxHeap = new PriorityQueue<>(Collections.reverseOrder()); }