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 98a3c45 commit 6294740Copy full SHA for 6294740
lcof/面试题57. 和为s的两个数字/README.md
@@ -23,8 +23,8 @@
23
<p><strong>限制:</strong></p>
24
25
<ul>
26
- <li><code>1 <= nums.length <= 10^5</code></li>
27
- <li><code>1 <= nums[i] <= 10^6</code></li>
+ <li><code>1 <= nums.length <= 10<sup>5</sup></code></li>
+ <li><code>1 <= nums[i] <= 10<sup>6</sup></code></li>
28
</ul>
29
30
## 解法
@@ -36,10 +36,10 @@
36
- 存在,即 `return` 返回。
37
- 不存在,记录元素,继续遍历。
38
39
-_复杂度_:
+*复杂度*:
40
41
-- 时间 **_O(N)_**
42
-- 空间 **_O(N)_**
+- 时间 ***O(N)***
+- 空间 ***O(N)***
43
44
**双指针**
45
@@ -52,10 +52,10 @@ _复杂度_:
52
53
> 因为数组是有序的,指针变动对值的影响可预测。
54
55
56
57
58
-- 空间 **_O(1)_**
+- 空间 ***O(1)***
59
60
```txt
61
TWO-SUM(A,t)
0 commit comments