Re:The ReadyForZero Programming Challenge
by hugh3 on Tuesday June 14, 2011 @06:02PM
(#2654964)
Did anyone else do that one without writing any code?
[ Parent
| on HN ]
You mean with smart guessing?
That's no fun!
Yeah. It took me three guesses to get it right. :)
You didn't need 3 guesses. The sum of each partition has to be a factor of the number. In particular the sum of the first partition has to be a factor. Then the second. That already gives you the answer I think.