Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Did anyone else do that one without writing any code?


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.


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: