Skip to content

Latest commit

 

History

History
 
 

371.Sum-of-Two-Integers

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

371.Sum-of-Two-Integers

将a+b改造为m+n,其中m=a^b不进位的加法,n=(a&b)<<1将有进位的bit置为1。反复这样的操作直至所有的进位为零,得到的m即为结果。

Leetcode Link