Skip to content

Commit 21b0b78

Browse files
authored
Update 371.sum-of-two-integers.md
1 parent 87fdb7d commit 21b0b78

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

problems/371.sum-of-two-integers.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Output: 1
2020

2121
## 前置知识
2222

23-
- 位运算
23+
- [位运算](https://github.com/azl397985856/leetcode/blob/master/thinkings/bit.md)
2424

2525
## 思路
2626

@@ -121,3 +121,16 @@ class Solution:
121121
# print((a, b))
122122
return a if a < 0x80000000 else ~(a^0xFFFFFFFF)
123123
```
124+
125+
**复杂度分析**
126+
- 时间复杂度:$O(1)$
127+
- 空间复杂度:$O(1)$
128+
129+
> 由于题目数据规模不会变化,因此其实复杂度分析是没有意义的。
130+
131+
更多题解可以访问我的LeetCode题解仓库:https://github.com/azl397985856/leetcode 。 目前已经35K star啦。
132+
133+
关注公众号力扣加加,努力用清晰直白的语言还原解题思路,并且有大量图解,手把手教你识别套路,高效刷题。
134+
135+
136+
![](https://tva1.sinaimg.cn/large/007S8ZIlly1gfcuzagjalj30p00dwabs.jpg)

0 commit comments

Comments
 (0)