Apple | Phone Screen

Anonymous User
2093
Jun 25, 2021
Jun 25, 2021

Imagine an interface with these methods -

interface Node {

1. getTotalCount();
2. getCountGreaterThanOrEquals(int x);
3. getCountLessThanOrEquals(int x);

}

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".

Comments (6)