Tripadvisor Interview Question

Running Median (LeetCode)

Interview Answer

Anonymous

Jan 19, 2018

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