r/programming • u/ldxtc • Sep 22 '20
Google engineer breaks down the problems he uses when doing technical interviews. Lots of advice on algorithms and programming.
https://alexgolec.dev/google-interview-questions-deconstructed-the-knights-dialer/
6.4k
Upvotes
2
u/binarycow Sep 23 '20
The first two are simple guard conditions.
In the third case, in a list containing 10 instances of the number 50... '50' is the highest number. '50' is also the second highest number.
Handling the last one, isn't THAT difficult. I would probably do this (which solves all of those)