This website works better with JavaScript
Home
Explore
Help
Sign In
ikachan
/
leetcode-go
Watch
1
Star
1
Fork
0
Files
Issues
0
Pull Requests
0
Wiki
Tree:
325cdd7304
Branches
Tags
master
leetcode-go
/
leetcode
/
easy
/
371.sum-of-two-integers.go
371.sum-of-two-integers.go
84 B
History
Raw
1
2
3
4
5
6
func getSum(a int, b int) int {
for b != 0 {
a, b = a^b, (a&b)<<1
}
return a
}