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

4

u/matthieum May 08 '15

Just knowing the Shunting Yard algorithm probably qualifies you better than any of the 5 problems.

For fun, I tried without, and I didn't get significantly less code: http://ideone.com/cPT5Pc although it might be more straightforward, maybe.

1

u/RizzlaPlus May 08 '15

this one is even shorter: http://ideone.com/Pnb6NW

1

u/[deleted] May 09 '15

This is Javascript, but it'd be basically line-to-line with C++. I'm posting it because I think its both fairly small and fairly readable.