Bombed on this question - wasn't expecting it and then fluffed the explanation. It was telling that he started the question by saying there is no right or wrong answer and commented after my answer that he thought ALOT more balls could fit in.
For future reference for potential interviewees: Make the assumption that golf balls tesselate just as cubes do. Estimate the volume of that cube to be around 10cm^2 (=0.001m^2) Look at the room, imagine multiple 1m rulers stood end on end to measure the width, height and depth of the room. E.g. 3m x 10m x 8m = 240m^2. Then just do the volume of the room divided by the volume of a single cube. = 240000 Golf Balls
Linked lists has their objects public, whilst the idea of classes is to make them private
Oh, answered the wrong questing about structures vs classes As for this one, Arrays: +easy access to any location - hard to add a new element (creating a larger array) Linked list: -to access the element need to go through whole list +easy to add a new element
Ballast = The rock used on railways which I did not know!
So you got declined because you didnt know what a ballast is? lmao job recruitment is an absolute joke, i wouldve let it pass if you were applying as an engineer but being a finance student you dont need to know wtf a ballast is lmao