News for hackers. Stuff that matters.
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?
Re:The ReadyForZero Programming Challenge by genesiss on Tuesday June 14, 2011 @06:05PM (#2654976)
You mean with smart guessing? That's no fun!
Re:The ReadyForZero Programming Challenge by hugh3 on Tuesday June 14, 2011 @06:31PM (#2655066)
Yeah. It took me three guesses to get it right. :)
Re:The ReadyForZero Programming Challenge by wbhart on Tuesday June 14, 2011 @09:49PM (#2655639)
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.
Re:The ReadyForZero Programming Challenge by hugh3 on Tuesday June 14, 2011 @10:49PM (#2655773)
Sure, but then I'd actually have to look at the numbers. My solution works without having to download the file! ;)