r/programming • • 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

1.1k comments sorted by

View all comments

2

u/orlyfactor Sep 23 '20

The one interview I had at Google was a disaster. The guy on the phone kept asking me how I would improve the Collection APIs in Java, specifically ArrayList. I went through some ideas and not knowing how Oracle actually implemented it I gave some rationale, etc. but NO, it wasn’t good enough and the guy kept asking the same question over and over. I asked him if he was familiar with the term “blood from a stone” and explained I was the stone and he would never get whatever answer he was looking for (it honestly went on for about a half hour). Worst interviewer I have ever experienced in my life and I let their HR know but they didn’t care.

1

u/[deleted] Sep 24 '20

How would you improve ArrayList? I'm not joking, I'm actually deep into writing my own Java collections and interested in another perspective.