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

Show parent comments

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.

6

u/serviscope_minor Sep 23 '20

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.

The problem is, you will lose/exclude a lot of candidates with take home tests.

3

u/Fairwhetherfriend Sep 23 '20

What makes you think you'd lose candidates this way?

2

u/Only_As_I_Fall Sep 23 '20

Because giving people a take home problem shows that you don't respect their time. I would never take one unless it had an enforced and short timebox (like an online coding problem).

People who are struggling to find work will gladly go to town on your take-home problem though.

8

u/Fairwhetherfriend Sep 23 '20

Because giving people a take home problem shows that you don't respect their time.

How does it show this any more than any other interview? It's arguably more respectful, because a take-home problem can be done when it suits the applicant, rather than demanding that they come into the office during normal working hours (potentially making them take time off from their current job).

2

u/Only_As_I_Fall Sep 23 '20

Because it takes way more time than an on site interview, and in the absence of covid there's almost certainly an on-site interview anyway.

If you believe that your potential hires are actually only spending 1-2 hours on these because you told them not to spend more, you're delusional.

It's not worth it for me to even try and compete with the workaholic you interviewed earlier in the week who probably spent his whole night poring over the problem.

5

u/Fairwhetherfriend Sep 23 '20 edited Sep 23 '20

I mean, if I'm being perfectly frank, I'm kinda okay with the idea of you self-selecting out of the candidate pool. You have no idea what the test looks like, how long it is, what the marking scheme looks like, or really anything about the specific context, but you've managed to convince yourself that isn't not worth the effort based on assumptions.

I can always teach new hire how to use github. Not sure I can teach you how to stop assuming the worst of any given situation.

2

u/Only_As_I_Fall Sep 23 '20

Ok, but even if I am entitled and disrespectful it doesn't mean your technical interview process doesn't have an adverse selection problem.

5

u/Fairwhetherfriend Sep 23 '20 edited Sep 23 '20

Okay, then what interview process do you propose?

Please ensure that, whatever you select, it:

  1. tests the required skills to a similar or greater degree of accuracy (ie: no whiteboard tests)

  2. doesn't cause potentially cause even more of an adverse selection problem

  3. doesn't take up an unreasonable amount of the technical team's time

I'm not saying take-home challenges are perfect. I am, however, saying that it's the best option we have, as far as I've been able to find, and that I don't really mind the idea of self-selecting out candidates who are inflexible enough to refuse to work within a system that is anything less than their preferred ideal.

4

u/Googoo123450 Sep 23 '20

I 100% agree with you. I have no idea what the hell this other guy is on about. I get the impression he thinks that it will take the candidates the full 24 hours or something which is clearly not what you're suggesting. Your method makes a lot of practical sense and I might actually implement something like it for my candidates since you make a lot of good points.

→ More replies (1)

2

u/serviscope_minor Sep 23 '20

If I get take-home work for an interview, it's a hard pass from me, so that's at least one. But on every thread on the topic there are plenty of others that feel like me as well.

→ More replies (10)

3

u/NeuhausNeuhaus Sep 23 '20

That's fooking genius

3

u/Carighan Sep 23 '20

Ah this reminds me of back in school when we had TI-92 graphical calculators and the teachers sometimes threw in questions where they know the calculator gave confusing answers that led you in the wrong direction.

The idea was not to be able to manually calculate things, but to know when the results you are given don't fit the problem you're trying to solve and you must have taken a wrong turn somewhere.

4

u/PorkChop007 Sep 23 '20

Except, for one of the questions, the top answer on Google was wrong

You absolute MONSTER.

2

u/trumpisbadperson Sep 23 '20

What does top answer is wrong mean? As in, was it an opinion question?

9

u/Fairwhetherfriend Sep 23 '20 edited Sep 23 '20

No, I mean that it's just straight up incorrect, 2+2=5 style.

The question was "Take this spreadsheet and make it into a normalized set of tables" and asked for a bunch of stuff - ER diagrams, examples of the required CREATE TABLE statements, etc etc. And if you google that question, you'll find it, and answers for it... but the the top result is wrong. That answer isn't properly normalized.

The result was that, every time I hired someone for a related position, easily 70% of the applicants make exactly the same mistakes on that question. It's very telling, honestly.

1

u/trumpisbadperson Sep 23 '20

Ah okay. I understand the need to find of the problem is already solved but I'd check that the solution is correct before using it, whether for an interview or routine task at work. I have found people who copy from stack overflow and don't even edit it to our coding standards. It is frustrating

1

u/AttackOfTheThumbs Sep 24 '20

I don't like homework style interviews either, but we do it at my work. It can be completed in an hour, is mostly multiple choice, and is simply testing if they sort of know what they are doing, and whether they think about performance.

1

u/Bmitchem Sep 23 '20

The problem I have with these more in-depth interview tests is that it's so much unpaid labor. Like.. imagine a world where instead of giving your X final applicants take home tests to do without pay you instead hired all 5 on a probation basis then fired the devs who don't know their shit

5

u/hapygallagher Sep 23 '20

There's too much overhead onboarding 5 new devs at once. And if you don't actually have the headcount to keep those 5 devs that's a much much bigger waste of their time. Sure they got paid for their time but what if the turned down other offers to take yours? Even if they didn't that's pretty soul destroying to get laid off after a probation period like that.

3

u/strdrrngr Sep 23 '20

Suppose one of those 5 candidates is already working but looking for a different position. Is that person expected to resign their current position, provide 2 weeks notice, go through an exit interview all on the hope that they do well in the probationary period?

2

u/Fairwhetherfriend Sep 23 '20

Em... it takes like 2 hours to actually do the test I normally offer, though. Which is basically equivalent to the amount of time you'd spend going to an in-person interview anyway, when you include prep, commute and waiting. I mean, I realize that some tests are definitely too much work, but that's by no means the actual rule.

3

u/[deleted] Sep 23 '20

Before reading these responses, I didnt realize so many programmers were so lazy. If some one is offering me a job at ~100k/year, I can definitely take ONE DAY to show them I'm capable of their requirements. Man, some people just want things handed to them. Give ME the test, I'll take it right now.

3

u/Fairwhetherfriend Sep 23 '20

I know! Like I get that there are horror tests that take like 10 hours to complete and that's completely unreasonable, but like... a test that has 4 questions and asks for a flowchart and some pseudocode is not that insane, right?! I'm shocked by the number of people who think I'm asking too much when I'm really just making sure you have some really basic understanding of relevant principles.

→ More replies (1)