Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hugh3
· 15y ago · 0 comments
Did anyone else do that one without writing any code?
Comments
[–]
genesiss
15y ago
You mean with smart guessing? That's no fun!
[–]
hugh3
OP
15y ago
Yeah. It took me three guesses to get it right. :)
[–]
wbhart
15y ago
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
OP
15y ago
Sure, but then I'd actually have to look at the numbers. My solution works without having to download the file! ;)