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

2

u/sebnukem May 08 '15 edited May 08 '15

lol OP got the wrong answer. He missed -1+2-3+4+5+6+78+9.

1

u/cdleech May 08 '15

"put + or - or nothing between the numbers"

Which numbers is that leading - between? Don't be an ass.

-2

u/svpino May 08 '15

signs should appear only between numbers.

1

u/sebnukem May 08 '15

ok, fair enough. Thanks for the little brain teaser on a Friday afternoon. Got mine in 27 minutes and 14 lines of code! \o/