Skip to content

Commit 8daa715

Browse files
committed
chore: remove black line in lc problems
1 parent 2017bd4 commit 8daa715

File tree

39 files changed

+5
-124
lines changed

39 files changed

+5
-124
lines changed

lcci/02.01.Remove Duplicate Node/README_EN.md

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
<ol>
3232
<li>The length of the list is within the range[0, 20000].</li>
3333
<li>The values of the list elements are within the range [0, 20000].</li>
34-
3534
</ol>
3635

3736
<p><strong>Follow Up: </strong></p>

solution/0100-0199/0160.Intersection of Two Linked Lists/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
<p><strong>示例 1:</strong></p>
3636

37-
<p><a href="https://assets.leetcode.com/uploads/2018/12/13/160_example_1.png" target="_blank"><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0100-0199/0160.Intersection%20of%20Two%20Linked%20Lists/images/160_example_1_1.png" style="height:130px; width:400px" /></a></p>
37+
<p><a href="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0100-0199/0160.Intersection%20of%20Two%20Linked%20Lists/images/160_example_1.png" target="_blank"><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0100-0199/0160.Intersection%20of%20Two%20Linked%20Lists/images/160_example_1_1.png" style="height:130px; width:400px" /></a></p>
3838

3939
<pre>
4040
<strong>输入:</strong>intersectVal = 8, listA = [4,1,8,4,5], listB = [5,6,1,8,4,5], skipA = 2, skipB = 3
@@ -49,7 +49,7 @@
4949

5050
<p><strong>示例&nbsp;2:</strong></p>
5151

52-
<p><a href="https://assets.leetcode.com/uploads/2018/12/13/160_example_2.png" target="_blank"><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0100-0199/0160.Intersection%20of%20Two%20Linked%20Lists/images/160_example_2.png" style="height:136px; width:350px" /></a></p>
52+
<p><a href="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0100-0199/0160.Intersection%20of%20Two%20Linked%20Lists/images/160_example_2.png" target="_blank"><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0100-0199/0160.Intersection%20of%20Two%20Linked%20Lists/images/160_example_2.png" style="height:136px; width:350px" /></a></p>
5353

5454
<pre>
5555
<strong>输入:</strong>intersectVal&nbsp;= 2, listA = [1,9,1,2,4], listB = [3,2,4], skipA = 3, skipB = 1
@@ -61,7 +61,7 @@
6161

6262
<p><strong>示例&nbsp;3:</strong></p>
6363

64-
<p><a href="https://assets.leetcode.com/uploads/2018/12/13/160_example_3.png" target="_blank"><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0100-0199/0160.Intersection%20of%20Two%20Linked%20Lists/images/160_example_3.png" style="height:126px; width:200px" /></a></p>
64+
<p><a href="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0100-0199/0160.Intersection%20of%20Two%20Linked%20Lists/images/160_example_3.png" target="_blank"><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0100-0199/0160.Intersection%20of%20Two%20Linked%20Lists/images/160_example_3.png" style="height:126px; width:200px" /></a></p>
6565

6666
<pre>
6767
<strong>输入:</strong>intersectVal = 0, listA = [2,6,4], listB = [1,5], skipA = 3, skipB = 2

solution/0100-0199/0174.Dungeon Game/README.md

-5
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,10 @@ table.dungeon, .dungeon th, .dungeon td {
8787
<p><strong>说明:</strong></p>
8888

8989
<ul>
90-
9190
<li>
92-
9391
<p>骑士的健康点数没有上限。</p>
94-
9592
</li>
96-
9793
<li>任何房间都可能对骑士的健康点数造成威胁,也可能增加骑士的健康点数,包括骑士进入的左上角房间以及公主被监禁的右下角房间。</li>
98-
9994
</ul>
10095

10196
## 解法

solution/0700-0799/0777.Swap Adjacent in LR String/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ XRLXXRRLX
3838

3939
**方法一:双指针**
4040

41-
替换操作可以实际上是将 `L` 往左移动(`L` 左边为 `X` 时才能移动),`R` 往右移动(`R` 右边是 `X` 时才能移动),但 `L` 无法穿过 `R`。所以,如果去掉 `start``end` 中的所有 `X`剩下的字符应该时相同的,否则返回 `false`
41+
替换操作实际上是将 `L` 往左移动(`L` 左边为 `X` 时才能移动),`R` 往右移动(`R` 右边是 `X` 时才能移动),但 `L` 无法穿过 `R`。所以,如果去掉 `start``end` 中的所有 `X`剩下的字符应该是相同的,否则返回 `false`
4242

4343
双指针遍历 `start``end`
4444

solution/0900-0999/0909.Snakes and Ladders/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
</li>
2121
<li>传送玩家:如果目标方格 <code>next</code> 处存在蛇或梯子,那么玩家会传送到蛇或梯子的目的地。否则,玩家传送到目标方格 <code>next</code> 。&nbsp;</li>
2222
<li>当玩家到达编号 <code>n<sup>2</sup></code> 的方格时,游戏结束。</li>
23-
2423
</ul>
2524

2625
<p><code>r</code> 行 <code>c</code> 列的棋盘,按前述方法编号,棋盘格中可能存在 “蛇” 或 “梯子”;如果 <code>board[r][c] != -1</code>,那个蛇或梯子的目的地将会是 <code>board[r][c]</code>。编号为 <code>1</code> 和 <code>n<sup>2</sup></code> 的方格上没有蛇或梯子。</p>

solution/0900-0999/0909.Snakes and Ladders/README_EN.md

-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010

1111
<ul>
1212
<li>Choose a destination square <code>next</code> with a label in the range <code>[curr + 1, min(curr + 6, n<sup>2</sup>)]</code>.
13-
1413
<ul>
1514
<li>This choice simulates the result of a standard <strong>6-sided die roll</strong>: i.e., there are always at most 6 destinations, regardless of the size of the board.</li>
1615
</ul>
1716
</li>
1817
<li>If <code>next</code> has a snake or ladder, you <strong>must</strong> move to the destination of that snake or ladder. Otherwise, you move to <code>next</code>.</li>
1918
<li>The game ends when you reach the square <code>n<sup>2</sup></code>.</li>
20-
2119
</ul>
2220

2321
<p>A board square on row <code>r</code> and column <code>c</code> has a snake or ladder if <code>board[r][c] != -1</code>. The destination of that snake or ladder is <code>board[r][c]</code>. Squares <code>1</code> and <code>n<sup>2</sup></code> do not have a snake or ladder.</p>

solution/0900-0999/0966.Vowel Spellchecker/README_EN.md

-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
<ul>
1212
<li>Capitalization: If the query matches a word in the wordlist (<strong>case-insensitive</strong>), then the query word is returned with the same case as the case in the wordlist.
13-
1413
<ul>
1514
<li>Example: <code>wordlist = [&quot;yellow&quot;]</code>, <code>query = &quot;YellOw&quot;</code>: <code>correct = &quot;yellow&quot;</code></li>
1615
<li>Example: <code>wordlist = [&quot;Yellow&quot;]</code>, <code>query = &quot;yellow&quot;</code>: <code>correct = &quot;Yellow&quot;</code></li>
@@ -24,7 +23,6 @@
2423
<li>Example: <code>wordlist = [&quot;YellOw&quot;]</code>, <code>query = &quot;yllw&quot;</code>: <code>correct = &quot;&quot;</code> (no match)</li>
2524
</ul>
2625
</li>
27-
2826
</ul>
2927

3028
<p>In addition, the spell checker operates under the following precedence rules:</p>

solution/1100-1199/1139.Largest 1-Bordered Square/README_EN.md

-4
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,9 @@
3333
<p><strong>Constraints:</strong></p>
3434

3535
<ul>
36-
3736
<li><code>1 &lt;= grid.length &lt;= 100</code></li>
38-
3937
<li><code>1 &lt;= grid[0].length &lt;= 100</code></li>
40-
4138
<li><code>grid[i][j]</code> is <code>0</code> or <code>1</code></li>
42-
4339
</ul>
4440

4541
## Solutions

solution/1100-1199/1187.Make Array Strictly Increasing/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@
5151
<p><strong>Constraints:</strong></p>
5252

5353
<ul>
54-
5554
<li><code>1 &lt;= arr1.length, arr2.length &lt;= 2000</code></li>
56-
5755
<li><code>0 &lt;= arr1[i], arr2[i] &lt;= 10^9</code></li>
58-
5956
</ul>
6057

6158
<p>&nbsp;</p>

solution/1200-1299/1248.Count Number of Nice Subarrays/README_EN.md

-4
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,9 @@
4949
<p><strong>Constraints:</strong></p>
5050

5151
<ul>
52-
5352
<li><code>1 &lt;= nums.length &lt;= 50000</code></li>
54-
5553
<li><code>1 &lt;= nums[i] &lt;= 10^5</code></li>
56-
5754
<li><code>1 &lt;= k &lt;= nums.length</code></li>
58-
5955
</ul>
6056

6157
## Solutions

solution/1200-1299/1256.Encode Number/README_EN.md

-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@
3737
<p><strong>Constraints:</strong></p>
3838

3939
<ul>
40-
4140
<li><code>0 &lt;= num &lt;= 10^9</code></li>
42-
4341
</ul>
4442

4543
## Solutions

solution/1300-1399/1301.Number of Paths with Max Score/README_EN.md

-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939
<p><strong>Constraints:</strong></p>
4040

4141
<ul>
42-
4342
<li><code>2 &lt;= board.length == board[i].length &lt;= 100</code></li>
44-
4543
</ul>
4644

4745
## Solutions

solution/1300-1399/1396.Design Underground System/README_EN.md

-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
<ul>
1212
<li><code>void checkIn(int id, string stationName, int t)</code>
13-
1413
<ul>
1514
<li>A customer with a card ID equal to <code>id</code>, checks in at the station <code>stationName</code> at time <code>t</code>.</li>
1615
<li>A customer can only be checked into one place at a time.</li>
@@ -29,7 +28,6 @@
2928
<li>There will be at least one customer that has traveled from <code>startStation</code> to <code>endStation</code> before <code>getAverageTime</code> is called.</li>
3029
</ul>
3130
</li>
32-
3331
</ul>
3432

3533
<p>You may assume all calls to the <code>checkIn</code> and <code>checkOut</code> methods are consistent. If a customer checks in at time <code>t<sub>1</sub></code> then checks out at time <code>t<sub>2</sub></code>, then <code>t<sub>1</sub> &lt; t<sub>2</sub></code>. All events happen in chronological order.</p>

solution/1500-1599/1523.Count Odd Numbers in an Interval Range/README_EN.md

-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
<p><strong>Constraints:</strong></p>
3434

3535
<ul>
36-
3736
<li><code>0 &lt;= low &lt;= high&nbsp;&lt;= 10^9</code></li>
38-
3937
</ul>
4038

4139
## Solutions

solution/1500-1599/1533.Find the Index of the Large Integer/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
</ul>
1818
</li>
1919
<li><code>int length()</code>:返回数组的长度。</li>
20-
2120
</ul>
2221

2322
<p>你最多可以调用函数&nbsp;<code>compareSub()</code>&nbsp;<strong>20 次</strong>。你可以认为这两个函数的时间复杂度都为&nbsp;<code>O(1)</code>&nbsp;。</p>

solution/1500-1599/1533.Find the Index of the Large Integer/README_EN.md

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
</ul>
1616
</li>
1717
<li><code>int length()</code>: Returns the size of the array.</li>
18-
1918
</ul>
2019

2120
<p>You are allowed to call <code>compareSub()</code> <b>20 times</b> at most. You can assume both functions work in <code>O(1)</code> time.</p>

solution/1500-1599/1538.Guess the Majority in a Hidden Array/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
</ul>
1818
</li>
1919
<li><code>int length()</code>:返回数组的长度。</li>
20-
2120
</ul>
2221

2322
<p>你可以调用&nbsp;<code>query()</code>&nbsp;最多&nbsp;<strong>2 * n 次</strong>,其中 n 等于&nbsp;<code>ArrayReader.length()</code>。</p>

solution/1500-1599/1538.Guess the Majority in a Hidden Array/README_EN.md

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
</ul>
1616
</li>
1717
<li><code>int length()</code>: Returns the size of the array.</li>
18-
1918
</ul>
2019

2120
<p>You are allowed to call <code>query()</code> <b>2 * n times</b> at most where n is equal to <code>ArrayReader.length()</code>.</p>

solution/1500-1599/1557.Minimum Number of Vertices to Reach All Nodes/README_EN.md

-6
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,11 @@
4343
<p><strong>Constraints:</strong></p>
4444

4545
<ul>
46-
4746
<li><code>2 &lt;= n &lt;= 10^5</code></li>
48-
4947
<li><code>1 &lt;= edges.length &lt;= min(10^5, n * (n - 1) / 2)</code></li>
50-
5148
<li><code>edges[i].length == 2</code></li>
52-
5349
<li><code>0 &lt;= from<sub>i,</sub>&nbsp;to<sub>i</sub> &lt; n</code></li>
54-
5550
<li>All pairs <code>(from<sub>i</sub>, to<sub>i</sub>)</code> are distinct.</li>
56-
5751
</ul>
5852

5953
## Solutions

solution/1500-1599/1585.Check If String Is Transformable With Substring Sort Operations/README_EN.md

-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88

99
<ul>
1010
<li>Choose a <strong>non-empty</strong> substring in <code>s</code> and sort it in place so the characters are in <strong>ascending order</strong>.
11-
1211
<ul>
1312
<li>For example, applying the operation on the underlined substring in <code>&quot;1<u>4234</u>&quot;</code> results in <code>&quot;1<u>2344</u>&quot;</code>.</li>
1413
</ul>
1514
</li>
16-
1715
</ul>
1816

1917
<p>Return <code>true</code> if <em>it is possible to transform <code>s</code> into <code>t</code></em>. Otherwise, return <code>false</code>.</p>

solution/1600-1699/1617.Count Subtrees With Max Distance Between Cities/README_EN.md

-6
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,11 @@ No subtree has two nodes where the max distance between them is 3.
6161
<p><strong>Constraints:</strong></p>
6262

6363
<ul>
64-
6564
<li><code>2 &lt;= n &lt;= 15</code></li>
66-
6765
<li><code>edges.length == n-1</code></li>
68-
6966
<li><code>edges[i].length == 2</code></li>
70-
7167
<li><code>1 &lt;= u<sub>i</sub>, v<sub>i</sub> &lt;= n</code></li>
72-
7368
<li>All pairs <code>(u<sub>i</sub>, v<sub>i</sub>)</code> are distinct.</li>
74-
7569
</ul>
7670

7771
## Solutions

solution/1600-1699/1618.Maximum Font to Fit a Sentence in a Screen/README_EN.md

-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ interface FontInfo {
3939
<ul>
4040
<li><code>getHeight(fontSize) &lt;= getHeight(fontSize+1)</code></li>
4141
<li><code>getWidth(fontSize, ch) &lt;= getWidth(fontSize+1, ch)</code></li>
42-
4342
</ul>
4443

4544
<p>Return <em>the maximum font size you can use to display </em><code>text</code><em> on the screen</em>. If <code>text</code> cannot fit on the display with any font size, return <code>-1</code>.</p>
@@ -88,7 +87,6 @@ interface FontInfo {
8887
<li><code>1 &lt;= fonts.length &lt;= 10<sup>5</sup></code></li>
8988
<li><code>1 &lt;= fonts[i] &lt;= 10<sup>5</sup></code></li>
9089
<li><code>fonts</code> is sorted in ascending order and does not contain duplicates.</li>
91-
9290
</ul>
9391

9492
## Solutions

solution/1600-1699/1620.Coordinate With Maximum Network Quality/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@
2020

2121
<ul>
2222
<li>坐标&nbsp;<code>(x1, y1)</code>&nbsp;字典序比另一个坐标&nbsp;<code>(x2, y2)</code> 小,需满足以下条件之一:
23-
2423
<ul>
2524
<li>要么&nbsp;<code>x1 &lt; x2</code>&nbsp;,</li>
2625
<li>要么&nbsp;<code>x1 == x2</code> 且&nbsp;<code>y1 &lt; y2</code>&nbsp;。</li>
2726
</ul>
2827
</li>
2928
<li><code>⌊val⌋</code>&nbsp;表示小于等于&nbsp;<code>val</code>&nbsp;的最大整数(向下取整函数)。</li>
30-
3129
</ul>
3230

3331
<p>&nbsp;</p>

solution/1600-1699/1620.Coordinate With Maximum Network Quality/README_EN.md

-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616

1717
<ul>
1818
<li>A coordinate <code>(x1, y1)</code> is lexicographically smaller than <code>(x2, y2)</code> if either:
19-
2019
<ul>
2120
<li><code>x1 &lt; x2</code>, or</li>
2221
<li><code>x1 == x2</code> and <code>y1 &lt; y2</code>.</li>
2322
</ul>
2423
</li>
2524
<li><code>&lfloor;val&rfloor;</code> is the greatest integer less than or equal to <code>val</code> (the floor function).</li>
26-
2725
</ul>
2826

2927
<p>&nbsp;</p>

solution/1600-1699/1634.Add Two Polynomials Represented as Linked Lists/README_EN.md

-6
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,11 @@
7171
<p><strong>Constraints:</strong></p>
7272

7373
<ul>
74-
7574
<li><code>0 &lt;= n &lt;= 10<sup>4</sup></code></li>
76-
7775
<li><code>-10<sup>9</sup>&nbsp;&lt;= PolyNode.coefficient &lt;= 10<sup>9</sup></code></li>
78-
7976
<li><code>PolyNode.coefficient != 0</code></li>
80-
8177
<li><code>0&nbsp;&lt;= PolyNode.power &lt;= 10<sup>9</sup></code></li>
82-
8378
<li><code>PolyNode.power &gt; PolyNode.next.power</code></li>
84-
8579
</ul>
8680

8781
## Solutions

solution/1600-1699/1649.Create Sorted Array through Instructions/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,8 @@ The total cost is 0 + 0 + 0 + 0 + 1 + 0 + 1 + 0 + 2 = 4.
100100
<p><strong>Constraints:</strong></p>
101101

102102
<ul>
103-
104103
<li><code>1 &lt;= instructions.length &lt;= 10<sup>5</sup></code></li>
105-
106104
<li><code>1 &lt;= instructions[i] &lt;= 10<sup>5</sup></code></li>
107-
108105
</ul>
109106

110107
## Solutions

solution/1600-1699/1657.Determine if Two Strings Are Close/README_EN.md

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
<ul>
1010
<li>Operation 1: Swap any two <strong>existing</strong> characters.
11-
1211
<ul>
1312
<li>For example, <code>a<u>b</u>cd<u>e</u> -&gt; a<u>e</u>cd<u>b</u></code></li>
1413
</ul>
@@ -18,7 +17,6 @@
1817
<li>For example, <code><u>aa</u>c<u>abb</u> -&gt; <u>bb</u>c<u>baa</u></code> (all <code>a</code>&#39;s turn into <code>b</code>&#39;s, and all <code>b</code>&#39;s turn into <code>a</code>&#39;s)</li>
1918
</ul>
2019
</li>
21-
2220
</ul>
2321

2422
<p>You can use the operations on either string as many times as necessary.</p>

solution/1600-1699/1660.Correct a Binary Tree/README_EN.md

-8
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,13 @@
5555
<p><strong>Constraints:</strong></p>
5656

5757
<ul>
58-
5958
<li>The number of nodes in the tree is in the range <code>[3, 10<sup>4</sup>]</code>.</li>
60-
6159
<li><code>-10<sup>9</sup> &lt;= Node.val &lt;= 10<sup>9</sup></code></li>
62-
6360
<li>All <code>Node.val</code> are <strong>unique</strong>.</li>
64-
6561
<li><code>fromNode != toNode</code></li>
66-
6762
<li><code>fromNode</code> and <code>toNode</code> will exist in the tree and will be on the same depth.</li>
68-
6963
<li><code>toNode</code> is to the <strong>right</strong> of <code>fromNode</code>.</li>
70-
7164
<li><code>fromNode.right</code> is <code>null</code> in the initial tree from the test data.</li>
72-
7365
</ul>
7466

7567
## Solutions

0 commit comments

Comments
 (0)