HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by mailarchis | Hacker News Reader
Full thread
mailarchis
·
I guess the third approach breaks if one of the two numbers is 0
View on HN
CJefferson
·
Or if an overflow occurs (while methods 1 and 2 work fine even with overflow, in Java at least as overflow semantics are well defined).
Reply on news.ycombinator.com