Dataminr Interview Question

One is write a function to get the median number from a dynamic number stream.

Interview Answers

Anonymous

Apr 1, 2015

Two heaps.

1

Anonymous

Jan 12, 2019

alternative sources

Anonymous

Mar 22, 2019

Use self balancing binary tree like red black tree or B tree