We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Your response makes no sense. if you do what you recomend then you will have the min and max values of the array as the root nodes of each heap. You still don't have the middle values of the array and you certainly can't have the median. Please go through your solution again.
Cookie support is required to access HackerRank
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 →
Your response makes no sense. if you do what you recomend then you will have the min and max values of the array as the root nodes of each heap. You still don't have the middle values of the array and you certainly can't have the median. Please go through your solution again.