Apple | Phone Screen
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2021-06-25Added By Anonymous
Source: Link
Imagine an interface with these methods -
1interface Node {
2
31. getTotalCount();
42. getCountGreaterThanOrEquals(int x);
53. getCountLessThanOrEquals(int x);
6
7}How do you determine the median of numbers present in the "Node" ?
There was another question asked along with this question. Couldn't propose a clear solution to this and hence a "REJECT".