Tripadvisor interview question

Running Median (LeetCode)

Interview Answer

Anonymous

19 Jan 2018

One min-heap and one max-heap. Insert new elements into the correct heap and balance out accordingly. (LeetCode)