Skip to content

Commit 9d3e84e

Browse files
authored
feat: update lc problems (doocs#3826)
1 parent 8a70139 commit 9d3e84e

File tree

24 files changed

+109
-125
lines changed

24 files changed

+109
-125
lines changed

solution/0200-0299/0277.Find the Celebrity/README_EN.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ tags:
2222

2323
<p>Now you want to find out who the celebrity is or verify that there is not one. You are only allowed to ask questions like: &quot;Hi, A. Do you know B?&quot; to get information about whether A knows B. You need to find out the celebrity (or verify there is not one) by asking as few questions as possible (in the asymptotic sense).</p>
2424

25-
<p>You are given a helper function <code>bool knows(a, b)</code> that tells you whether <code>a</code> knows <code>b</code>. Implement a function <code>int findCelebrity(n)</code>. There will be exactly one celebrity if they are at the party.</p>
25+
<p>You are given an integer <code>n</code> and a helper function <code>bool knows(a, b)</code> that tells you whether <code>a</code> knows <code>b</code>. Implement a function <code>int findCelebrity(n)</code>. There will be exactly one celebrity if they are at the party.</p>
2626

2727
<p>Return <em>the celebrity&#39;s label if there is a celebrity at the party</em>. If there is no celebrity, return <code>-1</code>.</p>
2828

29+
<p><strong>Note</strong> that the <code>n x n</code> 2D array <code>graph</code> given as input is <strong>not</strong> directly available to you, and instead <strong>only</strong> accessible through the helper function <code>knows</code>. <code>graph[i][j] == 1</code> represents person <code>i</code> knows person <code>j</code>, wherease <code>graph[i][j] == 0</code> represents person <code>j</code> does not know person <code>i</code>.</p>
30+
2931
<p>&nbsp;</p>
3032
<p><strong class="example">Example 1:</strong></p>
3133
<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0200-0299/0277.Find%20the%20Celebrity/images/g1.jpg" style="width: 224px; height: 145px;" />

solution/0300-0399/0364.Nested List Weight Sum II/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ tags:
5454
<li><code>1 &lt;= nestedList.length &lt;= 50</code></li>
5555
<li>嵌套列表中整数的值在范围 <code>[-100, 100]</code></li>
5656
<li>任意整数的最大 <strong>深度</strong> 小于等于 <code>50</code></li>
57+
<li>没有空列表</li>
5758
</ul>
5859

5960
<!-- description:end -->

solution/0300-0399/0364.Nested List Weight Sum II/README_EN.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ tags:
5252
<li><code>1 &lt;= nestedList.length &lt;= 50</code></li>
5353
<li>The values of the integers in the nested list is in the range <code>[-100, 100]</code>.</li>
5454
<li>The maximum <strong>depth</strong> of any integer is less than or equal to <code>50</code>.</li>
55+
<li>There are no empty lists.</li>
5556
</ul>
5657

5758
<!-- description:end -->

solution/0700-0799/0773.Sliding Puzzle/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ difficulty: 困难
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/0700-0799/0773.Sliding%20Puzzle/README.md
55
tags:
66
- 广度优先搜索
7+
- 记忆化搜索
78
- 数组
9+
- 动态规划
10+
- 回溯
811
- 矩阵
912
---
1013

solution/0700-0799/0773.Sliding Puzzle/README_EN.md

+3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ difficulty: Hard
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/0700-0799/0773.Sliding%20Puzzle/README_EN.md
55
tags:
66
- Breadth-First Search
7+
- Memoization
78
- Array
9+
- Dynamic Programming
10+
- Backtracking
811
- Matrix
912
---
1013

solution/0700-0799/0782.Transform to Chessboard/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tags:
1919

2020
<!-- description:start -->
2121

22-
<p>一个&nbsp;<code>n x n</code>&nbsp;的二维网络&nbsp;<code>board</code>&nbsp;仅由&nbsp;<code>0</code>&nbsp;&nbsp;<code>1</code>&nbsp;组成&nbsp;。每次移动,你能任意交换两列或是两行的位置。</p>
22+
<p>一个&nbsp;<code>n x n</code>&nbsp;的二维网络&nbsp;<code>board</code>&nbsp;仅由&nbsp;<code>0</code>&nbsp;&nbsp;<code>1</code>&nbsp;组成&nbsp;。每次移动,你能交换任意两列或是两行的位置。</p>
2323

2424
<p>返回 <em>将这个矩阵变为<strong>&nbsp; “棋盘”&nbsp;&nbsp;</strong>所需的最小移动次数&nbsp;</em>。如果不存在可行的变换,输出 <code>-1</code>。</p>
2525

solution/1600-1699/1683.Invalid Tweets/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ tags:
2626
| content | varchar |
2727
+----------------+---------+
2828
在 SQL 中,tweet_id 是这个表的主键。
29+
content 只包含美式键盘上的字符,不包含其它特殊字符。
2930
这个表包含某社交媒体 App 中所有的推文。</pre>
3031

3132
<p>&nbsp;</p>

solution/1600-1699/1683.Invalid Tweets/README_EN.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ tags:
2626
| content | varchar |
2727
+----------------+---------+
2828
tweet_id is the primary key (column with unique values) for this table.
29+
content consists of characters on an American Keyboard, and no other special characters.
2930
This table contains all the tweets in a social media app.
3031
</pre>
3132

solution/1800-1899/1861.Rotating the Box/README.md

+34-31
Original file line numberDiff line numberDiff line change
@@ -20,68 +20,71 @@ tags:
2020

2121
<!-- description:start -->
2222

23-
<p>给你一个 <code>m x n</code> 的字符矩阵 <code>box</code> ,它表示一个箱子的侧视图。箱子的每一个格子可能为:</p>
23+
<p>给你一个&nbsp;<code>m x n</code>&nbsp;的字符矩阵&nbsp;<code>boxGrid</code>&nbsp;,它表示一个箱子的侧视图。箱子的每一个格子可能为:</p>
2424

2525
<ul>
26-
<li><code>'#'</code> 表示石头</li>
27-
<li><code>'*'</code> 表示固定的障碍物</li>
28-
<li><code>'.'</code> 表示空位置</li>
26+
<li><code>'#'</code>&nbsp;表示石头</li>
27+
<li><code>'*'</code>&nbsp;表示固定的障碍物</li>
28+
<li><code>'.'</code>&nbsp;表示空位置</li>
2929
</ul>
3030

31-
<p>这个箱子被 <strong>顺时针旋转 90 度</strong> ,由于重力原因,部分石头的位置会发生改变。每个石头会垂直掉落,直到它遇到障碍物,另一个石头或者箱子的底部。重力 <strong>不会</strong> 影响障碍物的位置,同时箱子旋转不会产生<strong>惯性</strong> ,也就是说石头的水平位置不会发生改变。</p>
31+
<p>这个箱子被 <strong>顺时针旋转 90 度</strong>&nbsp;,由于重力原因,部分石头的位置会发生改变。每个石头会垂直掉落,直到它遇到障碍物,另一个石头或者箱子的底部。重力 <strong>不会</strong>&nbsp;影响障碍物的位置,同时箱子旋转不会产生<strong>惯性</strong>&nbsp;,也就是说石头的水平位置不会发生改变。</p>
3232

33-
<p>题目保证初始时 <code>box</code> 中的石头要么在一个障碍物上,要么在另一个石头上,要么在箱子的底部。</p>
33+
<p>题目保证初始时&nbsp;<code>boxGrid</code>&nbsp;中的石头要么在一个障碍物上,要么在另一个石头上,要么在箱子的底部。</p>
3434

35-
<p>请你返回一个<em> </em><code>n x m</code>的矩阵,表示按照上述旋转后,箱子内的结果。</p>
35+
<p>请你返回一个<em>&nbsp;</em><code>n x m</code>&nbsp;的矩阵,表示按照上述旋转后,箱子内的结果。</p>
3636

37-
<p> </p>
37+
<p>&nbsp;</p>
3838

3939
<p><strong>示例 1:</strong></p>
4040

41-
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcodewithstones.png" style="width: 300px; height: 150px;"></p>
41+
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcodewithstones.png" style="width: 300px; height: 150px;" /></p>
4242

43-
<pre><b>输入:</b>box = [["#",".","#"]]
43+
<pre>
44+
<b>输入:</b>box = [["#",".","#"]]
4445
<b>输出:</b>[["."],
45-
  ["#"],
46-
  ["#"]]
46+
&nbsp; ["#"],
47+
&nbsp; ["#"]]
4748
</pre>
4849

4950
<p><strong>示例 2:</strong></p>
5051

51-
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcode2withstones.png" style="width: 375px; height: 195px;"></p>
52+
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcode2withstones.png" style="width: 375px; height: 195px;" /></p>
5253

53-
<pre><b>输入:</b>box = [["#",".","*","."],
54-
  ["#","#","*","."]]
54+
<pre>
55+
<b>输入:</b>box = [["#",".","*","."],
56+
&nbsp; ["#","#","*","."]]
5557
<b>输出:</b>[["#","."],
56-
  ["#","#"],
57-
  ["*","*"],
58-
  [".","."]]
58+
&nbsp; ["#","#"],
59+
&nbsp; ["*","*"],
60+
&nbsp; [".","."]]
5961
</pre>
6062

6163
<p><strong>示例 3:</strong></p>
6264

63-
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcode3withstone.png" style="width: 400px; height: 218px;"></p>
65+
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcode3withstone.png" style="width: 400px; height: 218px;" /></p>
6466

65-
<pre><b>输入:</b>box = [["#","#","*",".","*","."],
66-
  ["#","#","#","*",".","."],
67-
  ["#","#","#",".","#","."]]
67+
<pre>
68+
<b>输入:</b>box = [["#","#","*",".","*","."],
69+
&nbsp; ["#","#","#","*",".","."],
70+
&nbsp; ["#","#","#",".","#","."]]
6871
<b>输出:</b>[[".","#","#"],
69-
  [".","#","#"],
70-
  ["#","#","*"],
71-
  ["#","*","."],
72-
  ["#",".","*"],
73-
  ["#",".","."]]
72+
&nbsp; [".","#","#"],
73+
&nbsp; ["#","#","*"],
74+
&nbsp; ["#","*","."],
75+
&nbsp; ["#",".","*"],
76+
&nbsp; ["#",".","."]]
7477
</pre>
7578

76-
<p> </p>
79+
<p>&nbsp;</p>
7780

7881
<p><strong>提示:</strong></p>
7982

8083
<ul>
81-
<li><code>m == box.length</code></li>
82-
<li><code>n == box[i].length</code></li>
84+
<li><code>m == boxGrid.length</code></li>
85+
<li><code>n == boxGrid[i].length</code></li>
8386
<li><code>1 &lt;= m, n &lt;= 500</code></li>
84-
<li><code>box[i][j]</code> 只可能是 <code>'#'</code> ,<code>'*'</code> 或者 <code>'.'</code> 。</li>
87+
<li><code>boxGrid[i][j]</code>&nbsp;只可能是&nbsp;<code>'#'</code>&nbsp;,<code>'*'</code>&nbsp;或者&nbsp;<code>'.'</code>&nbsp;。</li>
8588
</ul>
8689

8790
<!-- description:end -->

solution/1800-1899/1861.Rotating the Box/README_EN.md

+12-45
Original file line numberDiff line numberDiff line change
@@ -20,102 +20,69 @@ tags:
2020

2121
<!-- description:start -->
2222

23-
<p>You are given an <code>m x n</code> matrix of characters <code>box</code> representing a side-view of a box. Each cell of the box is one of the following:</p>
23+
<p>You are given an <code>m x n</code> matrix of characters <code>boxGrid</code> representing a side-view of a box. Each cell of the box is one of the following:</p>
2424

2525
<ul>
26-
27-
<li>A stone <code>&#39;#&#39;</code></li>
28-
29-
<li>A stationary obstacle <code>&#39;*&#39;</code></li>
30-
31-
<li>Empty <code>&#39;.&#39;</code></li>
32-
26+
<li>A stone <code>&#39;#&#39;</code></li>
27+
<li>A stationary obstacle <code>&#39;*&#39;</code></li>
28+
<li>Empty <code>&#39;.&#39;</code></li>
3329
</ul>
3430

3531
<p>The box is rotated <strong>90 degrees clockwise</strong>, causing some of the stones to fall due to gravity. Each stone falls down until it lands on an obstacle, another stone, or the bottom of the box. Gravity <strong>does not</strong> affect the obstacles&#39; positions, and the inertia from the box&#39;s rotation <strong>does not </strong>affect the stones&#39; horizontal positions.</p>
3632

37-
<p>It is <strong>guaranteed</strong> that each stone in <code>box</code> rests on an obstacle, another stone, or the bottom of the box.</p>
33+
<p>It is <strong>guaranteed</strong> that each stone in <code>boxGrid</code> rests on an obstacle, another stone, or the bottom of the box.</p>
3834

3935
<p>Return <em>an </em><code>n x m</code><em> matrix representing the box after the rotation described above</em>.</p>
4036

4137
<p>&nbsp;</p>
42-
4338
<p><strong class="example">Example 1:</strong></p>
4439

4540
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcodewithstones.png" style="width: 300px; height: 150px;" /></p>
4641

4742
<pre>
48-
49-
<strong>Input:</strong> box = [[&quot;#&quot;,&quot;.&quot;,&quot;#&quot;]]
50-
43+
<strong>Input:</strong> boxGrid = [[&quot;#&quot;,&quot;.&quot;,&quot;#&quot;]]
5144
<strong>Output:</strong> [[&quot;.&quot;],
52-
5345
&nbsp; [&quot;#&quot;],
54-
5546
&nbsp; [&quot;#&quot;]]
56-
5747
</pre>
5848

5949
<p><strong class="example">Example 2:</strong></p>
6050

6151
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcode2withstones.png" style="width: 375px; height: 195px;" /></p>
6252

6353
<pre>
64-
65-
<strong>Input:</strong> box = [[&quot;#&quot;,&quot;.&quot;,&quot;*&quot;,&quot;.&quot;],
66-
54+
<strong>Input:</strong> boxGrid = [[&quot;#&quot;,&quot;.&quot;,&quot;*&quot;,&quot;.&quot;],
6755
&nbsp; [&quot;#&quot;,&quot;#&quot;,&quot;*&quot;,&quot;.&quot;]]
68-
6956
<strong>Output:</strong> [[&quot;#&quot;,&quot;.&quot;],
70-
7157
&nbsp; [&quot;#&quot;,&quot;#&quot;],
72-
7358
&nbsp; [&quot;*&quot;,&quot;*&quot;],
74-
7559
&nbsp; [&quot;.&quot;,&quot;.&quot;]]
76-
7760
</pre>
7861

7962
<p><strong class="example">Example 3:</strong></p>
8063

8164
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1800-1899/1861.Rotating%20the%20Box/images/rotatingtheboxleetcode3withstone.png" style="width: 400px; height: 218px;" /></p>
8265

8366
<pre>
84-
85-
<strong>Input:</strong> box = [[&quot;#&quot;,&quot;#&quot;,&quot;*&quot;,&quot;.&quot;,&quot;*&quot;,&quot;.&quot;],
86-
67+
<strong>Input:</strong> boxGrid = [[&quot;#&quot;,&quot;#&quot;,&quot;*&quot;,&quot;.&quot;,&quot;*&quot;,&quot;.&quot;],
8768
&nbsp; [&quot;#&quot;,&quot;#&quot;,&quot;#&quot;,&quot;*&quot;,&quot;.&quot;,&quot;.&quot;],
88-
8969
&nbsp; [&quot;#&quot;,&quot;#&quot;,&quot;#&quot;,&quot;.&quot;,&quot;#&quot;,&quot;.&quot;]]
90-
9170
<strong>Output:</strong> [[&quot;.&quot;,&quot;#&quot;,&quot;#&quot;],
92-
9371
&nbsp; [&quot;.&quot;,&quot;#&quot;,&quot;#&quot;],
94-
9572
&nbsp; [&quot;#&quot;,&quot;#&quot;,&quot;*&quot;],
96-
9773
&nbsp; [&quot;#&quot;,&quot;*&quot;,&quot;.&quot;],
98-
9974
&nbsp; [&quot;#&quot;,&quot;.&quot;,&quot;*&quot;],
100-
10175
&nbsp; [&quot;#&quot;,&quot;.&quot;,&quot;.&quot;]]
102-
10376
</pre>
10477

10578
<p>&nbsp;</p>
106-
10779
<p><strong>Constraints:</strong></p>
10880

10981
<ul>
110-
111-
<li><code>m == box.length</code></li>
112-
113-
<li><code>n == box[i].length</code></li>
114-
115-
<li><code>1 &lt;= m, n &lt;= 500</code></li>
116-
117-
<li><code>box[i][j]</code> is either <code>&#39;#&#39;</code>, <code>&#39;*&#39;</code>, or <code>&#39;.&#39;</code>.</li>
118-
82+
<li><code>m == boxGrid.length</code></li>
83+
<li><code>n == boxGrid[i].length</code></li>
84+
<li><code>1 &lt;= m, n &lt;= 500</code></li>
85+
<li><code>boxGrid[i][j]</code> is either <code>&#39;#&#39;</code>, <code>&#39;*&#39;</code>, or <code>&#39;.&#39;</code>.</li>
11986
</ul>
12087

12188
<!-- description:end -->

solution/1800-1899/1891.Cutting Ribbons/README.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,26 @@ tags:
1717

1818
<!-- description:start -->
1919

20-
<p>给定一个整数数组 <code>ribbons</code> 和一个整数 <code>k</code>,数组每项 <code>ribbons[i]</code> 表示第 <code>i</code> 条绳子的长度。对于每条绳子,你可以将任意切割成一系列长度为<strong>正整数</strong>的部分,或者选择不进行切割。</p>
20+
<p>给定一个整数数组&nbsp;<code>ribbons</code>&nbsp;和一个整数 <code>k</code>,数组每项&nbsp;<code>ribbons[i]</code>&nbsp;表示第&nbsp;<code>i</code>&nbsp;条绳子的长度。对于每条绳子,你可以将任意切割成一系列长度为&nbsp;<strong>正整数&nbsp;</strong>的部分,或者选择不进行切割。</p>
2121

2222
<p>例如,如果给你一条长度为 <code>4</code> 的绳子,你可以:</p>
2323

2424
<ul>
2525
<li>保持绳子的长度为 <code>4</code> 不变;</li>
2626
<li>切割成一条长度为 <code>3</code> 和一条长度为 <code>1</code> 的绳子;</li>
27-
<li>切割成两条长度为 <code>2</code> 的绳子;</li>
28-
<li>切割成一条长度为 <code>2</code> 和两条长度为 <code>1</code> 的绳子;</li>
29-
<li>切割成四条长度为 <code>1</code> 的绳子。</li>
27+
<li>切割成两条长度为 <code>2</code>&nbsp;的绳子;</li>
28+
<li>切割成一条长度为 <code>2</code>&nbsp;和两条长度为 <code>1</code> 的绳子;</li>
29+
<li>切割成四条长度为 <code>1</code>&nbsp;的绳子。</li>
3030
</ul>
3131

32-
<p>你的任务是最终得到 <code>k</code> 条完全一样的绳子,他们的长度均为<strong>相同的正整数</strong>。如果绳子切割后有剩余,你可以直接舍弃掉多余的部分。</p>
32+
<p>你的任务是找出最大 <code>x</code> 值,要求满足可以裁切出恰好 <code>k</code> 条长度均为 <code>x</code> 的绳子。你可以丢弃裁切后剩余的任意长度的绳子。如果不可能切割出&nbsp;<code>k</code> 条相同长度的绳子,返回 0。</p>
3333

34-
<p>对于这 <code>k</code> 根绳子,返回你能得到的绳子<strong>最大</strong>长度;如果你无法得到 <code>k</code> 根相同长度的绳子,返回 <code>0</code>。</p>
35-
36-
<p> </p>
34+
<p>&nbsp;</p>
3735

3836
<p><strong>示例 1:</strong></p>
3937

40-
<pre><strong>输入:</strong> ribbons = [9,7,5], k = 3
38+
<pre>
39+
<strong>输入:</strong> ribbons = [9,7,5], k = 3
4140
<strong>输出:</strong> 5
4241
<strong>解释:</strong>
4342
- 把第一条绳子切成两部分,一条长度为 5,一条长度为 4;
@@ -47,7 +46,8 @@ tags:
4746

4847
<p><strong>示例 2:</strong></p>
4948

50-
<pre><strong>输入:</strong> ribbons = [7,5,9], k = 4
49+
<pre>
50+
<strong>输入:</strong> ribbons = [7,5,9], k = 4
5151
<strong>输出:</strong> 4
5252
<strong>解释:</strong>
5353
- 把第一条绳子切成两部分,一条长度为 4,一条长度为 3;
@@ -58,12 +58,13 @@ tags:
5858

5959
<p><strong>示例 3:</strong></p>
6060

61-
<pre><strong>输入:</strong> ribbons = [5,7,9], k = 22
61+
<pre>
62+
<strong>输入:</strong> ribbons = [5,7,9], k = 22
6263
<strong>输出:</strong> 0
6364
<strong>解释:</strong> 由于绳子长度需要为正整数,你无法得到 22 条长度相同的绳子。
6465
</pre>
6566

66-
<p> </p>
67+
<p>&nbsp;</p>
6768

6869
<p><strong>提示:</strong></p>
6970

solution/1800-1899/1891.Cutting Ribbons/README_EN.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ tags:
3333

3434
</ul>
3535

36-
<p>Your goal is to obtain <code>k</code> ribbons of all the <strong>same positive integer length</strong>. You are allowed to throw away any excess ribbon as a result of cutting.</p>
37-
38-
<p>Return <em>the <strong>maximum</strong> possible positive integer length that you can obtain </em><code>k</code><em> ribbons of</em><em>, or </em><code>0</code><em> if you cannot obtain </em><code>k</code><em> ribbons of the same length</em>.</p>
36+
<p>Your task is to determine the <strong>maximum</strong> length of ribbon, <code>x</code>, that allows you to cut <em>exactly</em> <code>k</code> ribbons, each of length <code>x</code>. You can discard any leftover ribbon from the cuts. If it is <strong>impossible</strong> to cut <code>k</code> ribbons of the same length, return 0.</p>
3937

4038
<p>&nbsp;</p>
4139
<p><strong class="example">Example 1:</strong></p>

solution/2000-2099/2056.Number of Valid Move Combinations On Chessboard/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ tags:
115115
<li><code>n == positions.length</code></li>
116116
<li><code>1 &lt;= n &lt;= 4</code></li>
117117
<li><code>pieces</code>&nbsp;只包含字符串&nbsp;<code>"rook"</code>&nbsp;,<code>"queen"</code>&nbsp;和&nbsp;<code>"bishop"</code>&nbsp;。</li>
118-
<li>棋盘上总共最多只有一个后。</li>
118+
<li>棋盘上最多只有一个后。</li>
119119
<li><code>1 &lt;= r<sub>i</sub>, c<sub>i</sub> &lt;= 8</code></li>
120120
<li>每一个&nbsp;<code>positions[i]</code>&nbsp;互不相同。</li>
121121
</ul>

solution/2000-2099/2064.Minimized Maximum of Products Distributed to Any Store/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/2000-2099/2064.Mi
55
rating: 1885
66
source: 第 266 场周赛 Q3
77
tags:
8+
- 贪心
89
- 数组
910
- 二分查找
1011
---

solution/2000-2099/2064.Minimized Maximum of Products Distributed to Any Store/README_EN.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/2000-2099/2064.Mi
55
rating: 1885
66
source: Weekly Contest 266 Q3
77
tags:
8+
- Greedy
89
- Array
910
- Binary Search
1011
---

0 commit comments

Comments
 (0)