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

4

u/dooklyn May 08 '15 edited May 08 '15

I don't see what the 4th or 5th questions have to do with actual programming. Those are logic problems and while they are tough, they don't test anything relevant to programming patterns, knowledge of tools, basically anything relevant to actually building modern software. Do you even ask if the guys know any relevant libraries? Or is it enough that he can solve your 5 little problems in QBASIC and that makes him a programmer?

You seem like the kind of elitist that writes obscure code just to stump others in order to feel superior. I bet it sucks balls working with you, maybe that's why you can't find anyone good.

Edit: how did this get 2000 upvotes, are people that insane? Or maybe the guy has some shitty bot running...

1

u/dagamer34 May 08 '15

Question is whether you expect them to know the solution off the bat (unreasonable) or how the respond after you give them hints (a bit more informative).

The fear is that interviewers are looking for the correct answer and nothing else, which makes these problems absolutely terrible. If however, it's more about what happens when you get stuck and how you arrive at the correct solution when assisted (testing, checking for bugs, improving your solution, etc...) then I could see this being a bit more fair.

Flashes of insight aren't that great though, even the best programmers have the worst of days.

0

u/[deleted] May 08 '15

[deleted]

1

u/Kyyni May 09 '15

Why not only brute force #5 though? If you use a language that has eval() (and since you're allowed to choose your language, you absolutely should!), it's simple with a bit of string manipulation and aforementioned function. You are asking for a solution to all these problems within an single hour, so if you ever want someone to be able to finish these off, you will have to tolerate sub-optimal code, that just works. There is only 38 = 6561 cases, so it won't even take long to compute.

If you really expect that when you throw difficult tasks with ridiculous deadlines at people they will magically produce perfect, optimal production-grade code, you need to rethink your view on "computer engineering". I bet you couldn't do that yourself either.