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

Most of the solutions explicitly assume 32 bit integers. These days most of us have 64 bit integers available.


Yes, but the two best solutions don't. The other solutions are mostly for educational purposes, I guess. One of #9 or #10 is the one that should be in some utility library.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: