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.5k

u/iloveparagon Sep 22 '20

Doing all that so you can get hired and implement REST APIs

0

u/[deleted] Sep 22 '20

[deleted]

131

u/TheNewOP Sep 22 '20

Well what if he just values his privacy?

136

u/lennybird Sep 22 '20

Then make it 401; currently, he lost his personal information and better find it! huehue

→ More replies (1)
→ More replies (7)

741

u/well___duh Sep 22 '20

Or even worse: doing all that and hiring the candidate, then forgetting the job position was for Android development and you forgot to ask Android-specific questions, and you actually hired a subpar Android dev because you focused on their algo skills that don't necessarily translate to real-world dev skills.

874

u/hparadiz Sep 22 '20

Imagine spending years gaining experience in Android Studio. Learning the ins and outs of development on the platform: debugging, deployment, and best practices. Eventually you work your way to building roms by learning on XDA. Finally you code your own thing and see your code actually get merged into upstream and now it's on every Android device ever. You're so proud and you apply for a job at Google. You get the interview but fail in the first round cause you couldn't figure out something you saw for the first time ever in under one hour.

418

u/well___duh Sep 22 '20 edited Sep 22 '20

Or b/c the "problem" you were asked to solve is not realistic at all pertaining to the job at question, and if it were, it is easily googleable because someone most likely already solved that problem, saving future devs much time in preventing them from reinventing the wheel.

To me, a true experienced dev isn't one who knows the answers to most questions, but the one who knows how to find the answers to most questions. Even if the solution isn't easily googled, an experienced dev has other ways of finding their solution, either through code debugging or asking other devs/coworkers or going through the code source, etc etc. 99% of devs in any job aren't going to spend most of their days solving code riddles, and it's very out of touch to interview with that in mind.

Note that this is all pertaining to most dev jobs out there, which are CRUD jobs, even at Google. Obviously this doesn't pertain to jobs involving brand new technologies where you're creating something completely from scratch, and thus you will be forced to find your own solutions.

131

u/Fairwhetherfriend Sep 22 '20

and if it were, it is easily googleable because someone most likely already solved that problem,

This is why, when I wrote a technical test for potential candidates for my job, they had 24 hours to do it on their own. They were allowed to use Google and whatever else they felt appropriate. Except, for one of the questions, the top answer on Google was wrong.

IMO, it's extremely useful to see who can make effective use of Google and, in particular, who is capable of recognizing the problem with the top result so that they know to either fix it or use another one. Now that shit is a useful skill for a technical candidate.

→ More replies (36)

144

u/AJackson3 Sep 22 '20

Totally agree, finding answers is a real skill and sorely lacking in my experience. On Friday I got added to a conference call with 3 others, 2 more senior than me, that was already over 2 hours in. They were trying to fix an error one was having. I'd never seen the error before but searched it, ignored a couple clearly unrelated results, and found a relevant potential solution and suggested it. Worked straight away. I have no idea what the spent 2 hours doing

165

u/[deleted] Sep 22 '20

Obviously they were calculating the time and space complexity of the solutions. Something a noob like you wouldn’t understand the importance of.

35

u/fried_green_baloney Sep 22 '20

Those knapsacks don't fill themselves.

→ More replies (1)
→ More replies (19)

53

u/Caffeine_Monster Sep 22 '20 edited Sep 22 '20

other ways of finding their solution, either through code debugging

This is the main thing that separates a good dev from mediocre time and time again. Sometimes hacking together toy examples from reading auto generated class docs or using custom implementations is the only way to get things done.

By definition, the internet typically only solves "easy" problems. i.e. problems that crop up a lot, or problems with trivial or well accepted solutions.

42

u/StabbyPants Sep 22 '20

This is the main thing that separates a good dev from mediocre time and time again.

yeah, you use the toy examples to tell you what you missed, then take some time to make sure it's sensible.

By definition, the internet typically only solves "easy" problems.

no, it also solves obscure ones related to the 3rd party lib you just saw today that people have been working on for two years. "oh, that's a known issue and here are two work arounds"

→ More replies (2)
→ More replies (56)
→ More replies (83)

194

u/CharonNixHydra Sep 22 '20

Ding ding ding!

I went through the entire interview process with a FAANG company. It was for a someone who specializes in low level camera integration with embedded Linux / Android. I have several patents in this domain and have been in the field for almost 20 years. During the entire process the camera questions were softballs very basic stuff that anyone who worked with a camera for a year or two would know. Of the three coding interviews in the process I ran out of time on the last one and because of this they rejected me.

It bothers me greatly that the camera specific interviews with their camera engineers were so basic. It tells me that their camera engineers probably don't have a deep understanding of what they are working with. I creeped on their LinkedIn profiles and none of those engineers had more than a few years working with cameras. So they are hiring camera engineers based on their algorithm skills but that skill set has almost no use in low level embedded Linux camera systems.

118

u/foundboots Sep 22 '20 edited Sep 22 '20

Reminds me of Apple Google rejecting the guy who wrote Homebrew because he couldn't reverse a binary tree.

edit: got my infamous engineering rejections mixed up.

80

u/Hibame Sep 22 '20

No, in this instance it was Google yet again. https://twitter.com/mxcl/status/608682016205344768

47

u/[deleted] Sep 22 '20

Yep, he actually ended up getting hired by Apple.

0

u/[deleted] Sep 22 '20

[deleted]

0

u/[deleted] Sep 22 '20

[deleted]

53

u/ouiserboudreauxxx Sep 22 '20

People are saying the same thing in this thread! That what he created was 'simple' - isn't simple good? We don't need to make things unnecessarily complex(unless you're organizing a FAANG interview, that is).

14

u/[deleted] Sep 23 '20

Simple is better than Complex

Complex is better than complicated

It’s amazing how many of my coworkers over engineer things to the point of complicated. No, you’re not clever. You’re building an unmaintainable mess.

→ More replies (0)

0

u/[deleted] Sep 22 '20

[deleted]

19

u/karmicthreat Sep 22 '20

Hacker News is full of people that are fairly smart, but complete idiots.

→ More replies (0)
→ More replies (2)
→ More replies (4)
→ More replies (6)
→ More replies (12)

52

u/dread_pirate_humdaak Sep 22 '20

I went back to school for EE after 20 years of software. Interviewing at Google ATAP was illuminating. Hardware engineers are interviewed respectfully and not required to do stupid code tricks.

→ More replies (3)
→ More replies (50)

24

u/EatMeerkats Sep 22 '20

Nah, at Google it's moving protobufs (and I'm only half joking).

→ More replies (49)