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

I hate to say this, but I would have failed the type 2's as well, in just copying and pasting and changing pluses to multiplies.

assuming signed int16 (for simplicity of discussion), 32767 + 1 is far easier to error handle (a simple check of the max_int value) than 10000 * 4, unless you are just blindly allowing the range of values and don't care about overflow/underflow.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: