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

Show parent comments

1

u/gnuvince May 08 '15

Why can't you take problem 4 or problem 5 and ask him to describe his thought process, how he's thinking of solving the problem(s), is he thinking of ways to test whether his algorithm is going to be correct, what's the asymptotic complexity of his solution, etc. No need to give him the extra pressure of a completely alien code-base that has probably its fair share of warts.

1

u/Don_Andy May 09 '15

No need to give him the extra pressure of a completely alien code-base that has probably its fair share of warts.

Well, that's what we're hiring him for though. If you work in the industry you're going to have to be able to work yourself into an alien codebase that more often than not is complete garbage.

Heck, even if that guy would've just thrown up his hands and gone "Nope, this is complete shit, I won't work with this" we'd still consider hire him if he can make a good argument for why he thinks the project is unworkable.

1

u/gnuvince May 09 '15

I still think that for an interview, it's way beyond reasonable to expect a candidate to understand a very likely messy code base and in minutes understand it and be able to productively add to it. You'd be okay if you interviewed at Microsoft and they flat out asked you to fix a bug in the Windows code base?