Leetcode 371 Sum of Two Integers

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

It seems in the case of two negative numbers that would cause overflow it becomes ((a+b) - 2*INT_MIN)

RenZhang
Автор

Doesn't work for negative integers, since left shift operator on negative integers is not standardized and would give different answers based on compiler.

kalashnikov
Автор

13:30
*lowkey*
//My code works but I don't know why!

duedares
welcome to shbcf.ru