You are viewing a single comment's thread. Return to all comments →
the balance should be .. the max heap should hold the minimum values...
while(!low.isEmpty() && !high.isEmpty() && low.peek() < high.peek()) {
Seems like cookies are disabled on this browser, please enable them to open this website
Heaps: Find the Running Median
You are viewing a single comment's thread. Return to all comments →
the balance should be .. the max heap should hold the minimum values...