How Many Javas
less than 1 minute read
A faithful counter of QSD’s coffee consumption since Feb 2, 2021.
Pro Tip
It is the approach that matters in such type of a problem as the interviewer is interested to know your problem solving ability and how you structure your thoughts and synthesise numbers to get an approx. answer.
ambiguities / clarification / vague / unstated components
//Are we looking at a commercial airplane or a military airplane?
Bedroom Type
Are we asking a particular bedroom or a typical oneFurnitures
Are we allowed to remove all the furnitures and left with an empty room? If not, could we place tennis balls in the hollow areas, like in cabinets, chests and drawers?Random or Maximum?
The Most Direct Approximation
Count the empty volume of the room, divided by the volume of a tennis ball (a ball of diameter 5cm)Improvement
: (balls are not liquid): Take the circumscribed cube as the volume / or take the circumscribed cylinder as the volume