r/programming • • May 09 '15

"Real programmers can do these problems easily"; author posts invalid solution to #4

https://blog.svpino.com/2015/05/08/solution-to-problem-4
3.1k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

5

u/edman007 May 09 '15

But the problem is under the stress and time limitations of an interview, 4 and 5 are simply not appropriate. As pointed out by that blog, you're not going to get it right in under an hour with pressure, you should be able to get it right eventually, but that's not something that should really be done in an interview.

1-3 are simple enough to be done in an interview, and they are simple enough that the interviewer should be able to watch them do it, and watch the process. It weeds out the liars, then you can go into external sources for real code (show me some of your own personal projects, and lets have a code review).

1

u/dccorona May 09 '15

I've been given problems more involved than 4 and 5 in 45-minute interviews, and in some cases where they weren't even the only problem.

If they're looking for the absolute best solution to the problem, then yea maybe they're too much. But they're absolutely workable to the point of at least a naive solution in an hour for good candidates, and can open the door to some interesting discussion that can tell the interviewer a good amount.

That being said, it would be better to wrap the problems in such a way that made them feel more relevant. A lot of times you can ask the same question in a different context and that makes it more exciting to the interviewer. A problem that, at its most simple, is an abstract, arbitrary mathematical operation, can be framed in such a way as to become a question about image manipulation, for example.

-1

u/UlyssesSKrunk May 09 '15

We already have something that accomplishes the exact same thing 1-3 do, fizzbuzz. If these were meant to be the same level and alternatives to fizzbuzz he should have said so.

0

u/[deleted] May 09 '15

Except companies like Google stopped asking stupid add questions like 4 and 5 because they discovered that good employees and people that can solve programming package puzzles are not correlated.

4

u/[deleted] May 09 '15

Google still ask questions like 4 and 5, what they don't ask are brainteasers like how many ping pong balls can fit in a 747 or why a manhole is round.

2

u/gnuvince May 09 '15

Question 4 was asked to a friend of mine by Google only two weeks ago.