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
1
u/Inondle May 08 '15
Yeah this problem is a little more complex than it looks which is true of #5 as well. My algorithm works for most cases but if you have 2,2,21 then it'll put it in 2122 rather than 2221. Off the top of my head I'm not sure how you would cover that case though...