History of Idiom 86 > diff from v16 to v17
Edit summary for version 17 by programming-idioms.org:
[PHP] PROBLEM: this works only when $x and $y are positive.
[PHP] PROBLEM: this works only when $x and $y are positive.
↷
Version 16
2018-03-05, 16:04:30
Version 17
2018-03-05, 16:05:21
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
Comments bubble
PROBLEM: this works only when $x and $y are positive.