r/programming • • May 08 '15

Five programming problems every Software Engineer should be able to solve in less than 1 hour

https://blog.svpino.com/2015/05/07/five-programming-problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour
2.5k Upvotes

2.1k comments sorted by

View all comments

2

u/DuneBug May 08 '15

First 3 are pretty basic... Stuff you could be able to do after your first compSci class if you actually understood the material.

4 Is a really great question in my book but.. I wonder if it's not the same for everyone, not everybody thinks the same. But I could see asking this in an interview and having a fun discussion to walk the guy through the problem.

5 is bad, unless you're looking for a developer to work on number crunching or something. #5 is IMO the kind of question NOT to ask. Every elitist SE has their own question like this that they think is super clever and if you can't solve it you must be an idiot. But they probably had seen something similar to it in the past, or do a lot of number crunching, or just have a brain that works that way. Most of reddit disliking this question is proof enough of this. Honestly I've had questions like this and turned down the job because I didn't want to work for the guy that thought this was a good question.

At the end of the day #5 has very little to do with programming or problem solving. I think it's a reasonable question to give someone that has a day to solve it, but not an hour. The OP's solution is like 40 lines of code... You're expecting someone to solve that in under an hour, during an interview?

Maybe I'm bitter because I wouldn't be able to solve it (not sure actually?), and I know some people that probably could. But it's used as some litmus test for programming or software engineering when it has very little application to either. If this is your boolean for "can this guy code" you'll turn down a lot of people who can code software, and accept the people who can code recursive functions manipulating integers... Who might also be able to write software.