History of Idiom 86 > diff from v10 to v11
Edit summary for version 11 by :
[Go] Comments: unsigned, multiplication performed.
[Go] Comments: unsigned, multiplication performed.
↷
Version 10
2016-02-21, 01:35:54
Version 11
2016-02-21, 17:17:55
Idiom #86 Check if integer multiplication will overflow
Write boolean function multiplyWillOverflow which takes two integers x, y and return true if (x*y) overflows.
Idiom #86 Check if integer multiplication will overflow
Write boolean function multiplyWillOverflow which takes two integers x, y and return true if (x*y) overflows.
Comments bubble
Note that the multiplication is performed, then its result is checked.