Radix sort? I read it as a trick question where the answer is 'hash table with numberOfYearsOld as the key'.
I suggested that as the solution to an almost identical question when interviewing with Google - and it got rejected by the interviewer. Ah, the arbitrariness of it all!
Radix sort? I read it as a trick question where the answer is 'hash table with numberOfYearsOld as the key'.
I suggested that as the solution to an almost identical question when interviewing with Google - and it got rejected by the interviewer. Ah, the arbitrariness of it all!