News for hackers. Stuff that matters.
Re:Working at Netflix by jedberg on Tuesday January 20, 2015 @07:17PM (#8920641)
I really like Fizzbuzz because for someone who is a good programmer, whether they've ever seen it or not, they can do it in about two minutes. I usually use it as my first question on the phone screen.

And you know what? More than 1/2 the people that claim to be doing a job writing code right now can not do it. If you can't write a simple loop in your preferred language, I have to wonder how you are doing coding right now and being successful.

Re:Working at Netflix by jghn on Tuesday January 20, 2015 @07:22PM (#8920664)
I think part of the key with giving FizzBuzz is telling the candidate that any working solution is AOK and meaning it, in other words the dumbest brute force loop is a successful answer. My suspicion is that more candidates than one would expect get hung up worrying about giving some sort of clever answer to impress the interviewer that they bobble it up a bit.

That said, for FizzBuzz proper, one should have dozens of solutions memorized for these situations, but for similarly easy questions the candidate might not have come across that might end up being a big deal.

Re:Working at Netflix by kevan on Tuesday January 20, 2015 @11:44PM (#8921487)
> My suspicion is that more candidates than one would expect get hung up worrying about giving some sort of clever answer to impress the interviewer that they bobble it up a bit.

I've definitely felt that pressure as an interviewee. It's pretty disheartening to write a simple and obviously correct implementation only to have the interviewer express their disappointment that you didn't use a particular optimization.

The most fun technical questions I've had start with making a functional algorithm and then massaging it to meet whatever time/space complexity requirements are asked for. Sometimes it results in a complete rewrite and that's ok, the real world works like that too.

Re:Working at Netflix by jlebar on Wednesday January 21, 2015 @01:35AM (#8921835)
> It's pretty disheartening to write a simple and obviously correct implementation only to have the interviewer express their disappointment that you didn't use a particular optimization.

I almost always preface whiteboard coding sessions with "I'm going to write some dumb, slow code and then we can make it faster if you want. Sound OK?" I've never had anyone disagree with this, but if they tell you they want you to go straight to the clever solution, hey, now you know what they're looking for.

Re:Working at Netflix by Bahamut on Wednesday January 21, 2015 @09:03AM (#8923077)
Even still, sometimes it helps just getting a solution down in order to step back and figure out the clever solution.
Re:Working at Netflix by cpeterso on Tuesday January 20, 2015 @09:00PM (#8921052)
Plus, you can "scale up" the interview to harder questions so you can test the candidate without making them feel bad by bombing a touch problem at the very start of the interview.
Re:Working at Netflix by RogerL on Tuesday January 20, 2015 @08:33PM (#8920951)
Well, that is just it. Certainly 100% of the people I have ever worked with, even the bad ones, can write a for loop and an if statement. I mistrust the process more than I mistrust the people, though I suppose maybe the same bad people and endlessly interviewing.

50% of working programmers can't write a for loop? Does that square with your experience outside of interviewing?

I don't quite buy the whole fizz-buzz story, though I don't have an adequate explanation for what could cause these kinds of failure rates. Something seems very off.

Re:Working at Netflix by SilasX on Wednesday January 21, 2015 @12:24AM (#8921616)
>50% of working programmers can't write a for loop? Does that square with your experience outside of interviewing?

Not 50% of working programmers, but of the programmer applicant pool. The applicants who can find jobs quickly aren't in the pool very long, and so it's dominated by the fakers and those who otherwise shouldn't be there. ... Which should make the reported phenomenon a little more believable.