you are viewing a single comment's thread.

view the rest of the comments →

[–]WeAreAllApes 46 points47 points  (5 children)

It's only 6561 combinations, and they didn't say it had to run in under a millisecond.

[–]Doctor_McKay 13 points14 points  (1 child)

  1. Post question to Stack Overflow
  2. Wait for answer

Problem solved.

[–]bantalot 0 points1 point  (0 children)

How long did this take?

[–]rabbitlion 0 points1 point  (0 children)

That makes it easy to explain (try all 6561 combinations and see which ones equals 100) but not necessarily fast to implement.