Snowflake SDE Interview Question 2022 August | Heaps | on-campus
Question · Posted Jun 2026
Question 1 Problem Statement The median is the middle value in an ordered integer list. If the size of the list is even, the median is the mean of the two middle values. Implement the MedianFinder class: MedianFinder() initializes the object void addNum(int num) adds the integer num from the data stream to the data structure double findMedian() returns the median of all elements so far Constraints -105 <= num <= 105 At most 5 x 104 calls will be ...
The full answer & interview discussion are available to premium members.
Log in Create a free account