3 ms·
I guess the third approach breaks if one of the two numbers is 0
by mailarchis 14y ago
I guess the third approach breaks if one of the two numbers is 0
- CJefferson 14y agoOr if an overflow occurs (while methods 1 and 2 work fine even with overflow, in Java at least as overflow semantics are well defined).