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

11

u/Backfiah May 08 '15

That's 9! runs though.

6

u/sbelljr May 08 '15 edited May 08 '15

9! = 362880

Shouldn't take too long. The point of the question is to get the answer, not to get the answer that works for extremely large cases too.

Edit. There are 38 = 6561 possibilities to check, not 9!. The whole point of the question is to brute force it. My point stands.

4

u/jeffhawke May 08 '15

38 not 9!, it's combination of three elements in eight positions, that's less that 10000.

2

u/nkorslund May 08 '15

If you type 3**8 into google you get 38 = 6561.

→ More replies (6)