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

8

u/[deleted] May 08 '15

OP's solution was to treat '5' with trailing zeros like '50'. Problem is, a real '51' takes precedence to '50', but that doesn't yield the correct solution, as 551 is greater than 515. He posted a completely reworked solution after someone pointed this out. Check out his Twitter for more details.

5

u/Decker87 May 08 '15

Thanks for explaining, Moran. That should be pretty embarrassing for him.