Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hugh3
on June 14, 2011
|
parent
|
context
|
favorite
| on:
The ReadyForZero Programming Challenge
Did anyone else do that one without writing any code?
genesiss
on June 14, 2011
[–]
You mean with smart guessing? That's no fun!
hugh3
on June 14, 2011
|
parent
[–]
Yeah. It took me three guesses to get it right. :)
wbhart
on June 15, 2011
|
root
|
parent
[–]
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.
hugh3
on June 15, 2011
|
root
|
parent
[–]
Sure, but then I'd actually have to look at the numbers. My solution works without having to download the file! ;)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: