Skip to content

Commit c7e5251

Browse files
committed
feat: update lc problems
1 parent 7e373a2 commit c7e5251

File tree

23 files changed

+67
-54
lines changed

23 files changed

+67
-54
lines changed

solution/0000-0099/0015.3Sum/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<strong>Input:</strong> nums = [-1,0,1,2,-1,-4]
1616
<strong>Output:</strong> [[-1,-1,2],[-1,0,1]]
1717
<strong>Explanation:</strong>
18-
nums[0] + nums[1] + nums[1] = (-1) + 0 + 1 = 0.
18+
nums[0] + nums[1] + nums[2] = (-1) + 0 + 1 = 0.
1919
nums[1] + nums[2] + nums[4] = 0 + 1 + (-1) = 0.
2020
nums[0] + nums[3] + nums[4] = (-1) + 2 + (-1) = 0.
2121
The distinct triplets are [-1,0,1] and [-1,-1,2].

solution/0000-0099/0030.Substring with Concatenation of All Words/README_EN.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ The output order does not matter, returning [9,0] is fine too.
3737

3838
<ul>
3939
<li><code>1 &lt;= s.length &lt;= 10<sup>4</sup></code></li>
40-
<li><code>s</code> consists of lower-case English letters.</li>
4140
<li><code>1 &lt;= words.length &lt;= 5000</code></li>
4241
<li><code>1 &lt;= words[i].length &lt;= 30</code></li>
43-
<li><code>words[i]</code>&nbsp;consists of lower-case English letters.</li>
42+
<li><code>s</code> and <code>words[i]</code> consist of lowercase English letters.</li>
4443
</ul>
4544

4645
## Solutions

solution/0200-0299/0215.Kth Largest Element in an Array/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<p><strong>提示: </strong></p>
3131

3232
<ul>
33-
<li><code>1 &lt;= k &lt;= nums.length &lt;= 10<sup>4</sup></code></li>
33+
<li><code>1 &lt;= k &lt;= nums.length &lt;= 10<sup>5</sup></code></li>
3434
<li><code>-10<sup>4</sup>&nbsp;&lt;= nums[i] &lt;= 10<sup>4</sup></code></li>
3535
</ul>
3636

solution/0200-0299/0297.Serialize and Deserialize Binary Tree/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<p>Design an algorithm to serialize and deserialize a binary tree. There is no restriction on how your serialization/deserialization algorithm should work. You just need to ensure that a binary tree can be serialized to a string and this string can be deserialized to the original tree structure.</p>
1010

11-
<p><strong>Clarification:</strong> The input/output format is the same as <a href="/faq/#binary-tree" target="_blank">how LeetCode serializes a binary tree</a>. You do not necessarily need to follow this format, so please be creative and come up with different approaches yourself.</p>
11+
<p><strong>Clarification:</strong> The input/output format is the same as <a href="https://support.leetcode.com/hc/en-us/articles/360011883654-What-does-1-null-2-3-mean-in-binary-tree-representation-" target="_blank">how LeetCode serializes a binary tree</a>. You do not necessarily need to follow this format, so please be creative and come up with different approaches yourself.</p>
1212

1313
<p>&nbsp;</p>
1414
<p><strong>Example 1:</strong></p>

solution/0300-0399/0336.Palindrome Pairs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
<strong>输出:</strong>[[0,1],[1,0]]
3333
</pre>
3434

35+
36+
3537
<p><strong>提示:</strong></p>
3638

3739
<ul>

solution/0500-0599/0554.Brick Wall/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
<strong>输出:</strong>3
2929
</pre>
3030

31+
32+
3133
<p><strong>提示:</strong></p>
3234

3335
<ul>

solution/0500-0599/0592.Fraction Addition and Subtraction/Solution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def fractionAddition(self, expression: str) -> str:
1010
j = i
1111
while j < n and expression[j] not in '+-':
1212
j += 1
13-
s = expression[i: j]
13+
s = expression[i:j]
1414
a, b = s.split('/')
1515
x += sign * int(a) * y // int(b)
1616
i = j

solution/0700-0799/0775.Global and Local Inversions/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
<strong>解释:</strong>有 2 个全局倒置,和 1 个局部倒置。
4343
</pre>
4444

45+
46+
4547
<p><strong>提示:</strong></p>
4648

4749
<ul>

solution/0800-0899/0830.Positions of Large Groups/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
<strong>输出:</strong>[]
4949
</pre>
5050

51+
52+
5153
<p><strong>提示:</strong></p>
5254

5355
<ul>

solution/1000-1099/1030.Matrix Cells in Distance Order/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<!-- 这里写题目描述 -->
88

9-
<p>给定四个整数 <code>row</code>&nbsp;,&nbsp; &nbsp;<code>cols</code> ,&nbsp; <code>rCenter</code> 和 <code>cCenter</code> 。有一个&nbsp;<code>rows x cols</code>&nbsp;的矩阵,你在单元格上的坐标是&nbsp;<code>(rCenter, cCenter)</code> 。</p>
9+
<p>给定四个整数 <code>rows</code>&nbsp;,&nbsp; &nbsp;<code>cols</code> ,&nbsp; <code>rCenter</code> 和 <code>cCenter</code> 。有一个&nbsp;<code>rows x cols</code>&nbsp;的矩阵,你在单元格上的坐标是&nbsp;<code>(rCenter, cCenter)</code> 。</p>
1010

1111
<p>返回矩阵中的所有单元格的坐标,并按与<em>&nbsp;</em><code>(rCenter, cCenter)</code><em>&nbsp;</em>的 <strong>距离</strong> 从最小到最大的顺序排。你可以按 <strong>任何</strong> 满足此条件的顺序返回答案。</p>
1212

0 commit comments

Comments
 (0)