Programming-Idioms

History of Idiom 86 > diff from v13 to v14

Edit summary for version 14 :
[Ruby] Variables names

Version 13

2016-04-06, 20:29:15

Version 14

2017-04-13, 15:25: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.

Code
def multiplyWillOverflow(a,b)
  false
end
Code
def multiplyWillOverflow(x,y)
  false
end