r/programming • u/svpino • 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
u/sparafucilee May 08 '15
Used Python in Emacs with an interactive interpreter.
Took me 20 minutes to write and test the first 4, more than half of which was spent debugging syntax errors, your usual mistypes, and looking up functions (I haven't written Python in a few years so I kind of bumbled through it).
Took me 20 minutes to solve the last one, most of which was spent thinking about how to solve it. The question probably needs rewriting... It took me a bit to figure out what you meant. Hardest part is just figuring out the best way for your language to generate the permutations.