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
4
u/carnetarian May 08 '15
Here's my solution in perl. I'm sure a better programmer than me could make something much more efficient, but this gets the job done. Basically I generate every possible combination of strings like "1-2+3+4-56-89" then I evaluate each of those strings. This problem took me much longer than all the other problems combined.