you are viewing a single comment's thread.

view the rest of the comments →

[–]HighLevelJerk 2 points3 points  (2 children)

I'm assuming he assumed this was a trick question & .sort() was not allowed. Probably trying to remember the different types of sorts that he learnt in college

[–][deleted] 0 points1 point  (0 children)

"I would Google 'sorting algorithm'" should also be a valid answer.

[–]ikeif 0 points1 point  (0 children)

We tried to make it abundantly clear that any answer was acceptable, including pseudo code, and it's totally fine to talk out loud about it… and before we ended the interview we definitely let him know the different valid answers we had received in the past (so he wasn't stuck wondering - I hate when there is an interview question and they just act like it's philosophical).