We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87fdb7d commit 21b0b78Copy full SHA for 21b0b78
problems/371.sum-of-two-integers.md
@@ -20,7 +20,7 @@ Output: 1
20
21
## 前置知识
22
23
-- 位运算
+- [位运算](https://github.com/azl397985856/leetcode/blob/master/thinkings/bit.md)
24
25
## 思路
26
@@ -121,3 +121,16 @@ class Solution:
121
# print((a, b))
122
return a if a < 0x80000000 else ~(a^0xFFFFFFFF)
123
```
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
+
0 commit comments