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

1

u/matt_hammond May 08 '15

I'm not sure if your program is flawed or you have a typo but your answer starts with 99599... But you can't get that number from what you have in the array. There's an extra 9 in your answer.

3

u/[deleted] May 08 '15

Final solution: 9 959 95 9595 9585

Original string: {9, 95, 959, 9585, 9595}

3

u/matt_hammond May 08 '15

I stand corrected

1

u/[deleted] May 08 '15

I'm still wondering if I would rather have this question or those silly "Explain me <insert confusing name in a language you have never heard of> Italian Horse Archer Algorithm" questions. :P

Anyway, did you solve the 5th problem? I can't think of any interesting non-math heavy proof/solutions.

→ More replies (1)