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
12
u/LUV_2_BEAT_MY_MEAT Sep 22 '20
My company has you write a small simple program like fizzbuzz, then has you make changes/enhancements to it. For an example we might ask a junior dev:
Implement fizzbuzz
Now we need it to handle numbers 1 - 200
Now we need it to print "foo" on %7==0 and "bar" on %9==0
Now we also want to want to output not only to standard output but also to another interface
Now it reads the input number array from an HTTP get
Or whatever. The difficulty scales to experince level. I like this because thats what you'll do at your job - negotiate requirements, write code and maintain it. You'll get a feel at how good they are at writing maintainable code, as well as their views on testing/refactoring. We let them bring their own computers and do it in the own language/IDE if they want. We'd even let them google stuff if they asked.