Pergunta de entrevista da empresa Glitch

Implement a function that takes in two unsigned integers and returns a boolean indicating whether you will have overflow if they are added together. Language of your choice.

Resposta da entrevista

Sigiloso

31 de out. de 2012

if( a + b < a ) return true; return false;