LeetCode Question · Nov 2019 · Los Angeles

Facebook | Phone Screen | Stream Median

1,834 views 4 replies

Question Details

implement a class that can (1) accept an integer and (2) query the median of all the integers that have been accepted. Example: c.add(1) c.add(2) c.add(3) c.median() >2 The interview wants O(n) time for add...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Sql