Skip to content

Commit 93dfaca

Browse files
authored
feat: update lc problems (doocs#4123)
1 parent e8ccff4 commit 93dfaca

File tree

32 files changed

+520
-53
lines changed

32 files changed

+520
-53
lines changed

solution/0200-0299/0262.Trips and Users/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ banned 是一个表示用户是否被禁止的枚举类型,枚举成员为 (
6161

6262
<p><strong>取消率</strong> 的计算方式如下:(被司机或乘客取消的非禁止用户生成的订单数量) / (非禁止用户生成的订单总数)。</p>
6363

64-
<p>编写解决方案找出&nbsp;<code>"2013-10-01"</code><strong>&nbsp;</strong>至&nbsp;<code>"2013-10-03"</code><strong>&nbsp;</strong>期间非禁止用户(<strong>乘客和司机都必须未被禁止</strong>)的取消率。非禁止用户即 banned 为 No 的用户,禁止用户即 banned 为 Yes 的用户。其中取消率 <code>Cancellation Rate</code> 需要四舍五入保留 <strong>两位小数</strong> 。</p>
64+
<p>编写解决方案找出&nbsp;<code>"2013-10-01"</code><strong>&nbsp;</strong>至&nbsp;<code>"2013-10-03"</code><strong>&nbsp;</strong>期间有&nbsp;<strong>至少&nbsp;</strong>一次行程的非禁止用户(<strong>乘客和司机都必须未被禁止</strong>)的 <strong>取消率</strong>。非禁止用户即 banned 为 No 的用户,禁止用户即 banned 为 Yes 的用户。其中取消率 <code>Cancellation Rate</code> 需要四舍五入保留 <strong>两位小数</strong> 。</p>
6565

6666
<p>返回结果表中的数据 <strong>无顺序要求</strong> 。</p>
6767

solution/1300-1399/1363.Largest Multiple of Three/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ source: 第 177 场周赛 Q4
77
tags:
88
- 贪心
99
- 数组
10+
- 数学
1011
- 动态规划
12+
- 排序
1113
---
1214

1315
<!-- problem:start -->

solution/1300-1399/1363.Largest Multiple of Three/README_EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ source: Weekly Contest 177 Q4
77
tags:
88
- Greedy
99
- Array
10+
- Math
1011
- Dynamic Programming
12+
- Sorting
1113
---
1214

1315
<!-- problem:start -->

solution/1300-1399/1365.How Many Numbers Are Smaller Than the Current Number/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source: 第 178 场周赛 Q1
77
tags:
88
- 数组
99
- 哈希表
10-
- 计数
10+
- 计数排序
1111
- 排序
1212
---
1313

solution/1300-1399/1365.How Many Numbers Are Smaller Than the Current Number/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source: Weekly Contest 178 Q1
77
tags:
88
- Array
99
- Hash Table
10-
- Counting
10+
- Counting Sort
1111
- Sorting
1212
---
1313

solution/1400-1499/1434.Number of Ways to Wear Different Hats to Each Other/README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ tags:
5757
(1,2,3,4) 4 个帽子的排列方案数为 24 。
5858
</pre>
5959

60-
<p><strong>示例 4:</strong></p>
61-
62-
<pre>
63-
<strong>输入:</strong>hats = [[1,2,3],[2,3,5,6],[1,3,7,9],[1,8,9],[2,5,7]]
64-
<strong>输出:</strong>111
65-
</pre>
66-
6760
<p>&nbsp;</p>
6861

6962
<p><strong>提示:</strong></p>

solution/1400-1499/1434.Number of Ways to Wear Different Hats to Each Other/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tags:
2525

2626
<p>Given a 2D integer array <code>hats</code>, where <code>hats[i]</code> is a list of all hats preferred by the <code>i<sup>th</sup></code> person.</p>
2727

28-
<p>Return <em>the number of ways that the <code>n</code> people wear different hats to each other</em>.</p>
28+
<p>Return the number of ways that <code>n</code> people can wear <strong>different</strong> hats from each other.</p>
2929

3030
<p>Since the answer may be too large, return it modulo <code>10<sup>9</sup> + 7</code>.</p>
3131

solution/1900-1999/1968.Array With Elements Not Equal to Average of Neighbors/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ When i=3, nums[i] = 5, and the average of its neighbors is (4+3) / 2 = 3.5.
4747
When i=1, nums[i] = 7, and the average of its neighbors is (9+6) / 2 = 7.5.
4848
When i=2, nums[i] = 6, and the average of its neighbors is (7+2) / 2 = 4.5.
4949
When i=3, nums[i] = 2, and the average of its neighbors is (6+0) / 2 = 3.
50-
</pre>
50+
Note that the original array [6,2,0,9,7] also satisfies the conditions.</pre>
5151

5252
<p>&nbsp;</p>
5353
<p><strong>Constraints:</strong></p>

solution/1900-1999/1974.Minimum Time to Type Word Using Special Typewriter/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ tags:
3636
<pre>
3737
<strong>Input:</strong> word = &quot;abc&quot;
3838
<strong>Output:</strong> 5
39-
<strong>Explanation:
39+
<strong>Explanation:
4040
</strong>The characters are printed as follows:
4141
- Type the character &#39;a&#39; in 1 second since the pointer is initially on &#39;a&#39;.
4242
- Move the pointer clockwise to &#39;b&#39; in 1 second.

solution/2100-2199/2138.Divide a String Into Groups of Size k/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tags:
2222
<p>A string <code>s</code> can be partitioned into groups of size <code>k</code> using the following procedure:</p>
2323

2424
<ul>
25-
<li>The first group consists of the first <code>k</code> characters of the string, the second group consists of the next <code>k</code> characters of the string, and so on. Each character can be a part of <strong>exactly one</strong> group.</li>
25+
<li>The first group consists of the first <code>k</code> characters of the string, the second group consists of the next <code>k</code> characters of the string, and so on. Each element can be a part of <strong>exactly one</strong> group.</li>
2626
<li>For the last group, if the string <strong>does not</strong> have <code>k</code> characters remaining, a character <code>fill</code> is used to complete the group.</li>
2727
</ul>
2828

0 commit comments

Comments
 (0)