Skip to content

Commit 6294740

Browse files
authored
fix: invalid tag (doocs#757)
面试题57. 和为s的两个数字
1 parent 98a3c45 commit 6294740

File tree

1 file changed

+8
-8
lines changed
  • lcof/面试题57. 和为s的两个数字

1 file changed

+8
-8
lines changed

lcof/面试题57. 和为s的两个数字/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<p><strong>限制:</strong></p>
2424

2525
<ul>
26-
<li><code>1 &lt;= nums.length &lt;= 10^5</code></li>
27-
<li><code>1 &lt;= nums[i]&nbsp;&lt;= 10^6</code></li>
26+
<li><code>1 &lt;= nums.length &lt;= 10<sup>5</sup></code></li>
27+
<li><code>1 &lt;= nums[i]&nbsp;&lt;= 10<sup>6</sup></code></li>
2828
</ul>
2929

3030
## 解法
@@ -36,10 +36,10 @@
3636
- 存在,即 `return` 返回。
3737
- 不存在,记录元素,继续遍历。
3838

39-
_复杂度_
39+
*复杂度*
4040

41-
- 时间 **_O(N)_**
42-
- 空间 **_O(N)_**
41+
- 时间 ***O(N)***
42+
- 空间 ***O(N)***
4343

4444
**双指针**
4545

@@ -52,10 +52,10 @@ _复杂度_:
5252

5353
> 因为数组是有序的,指针变动对值的影响可预测。
5454
55-
_复杂度_
55+
*复杂度*
5656

57-
- 时间 **_O(N)_**
58-
- 空间 **_O(1)_**
57+
- 时间 ***O(N)***
58+
- 空间 ***O(1)***
5959

6060
```txt
6161
TWO-SUM(A,t)

0 commit comments

Comments
 (0)