Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7c9283e

Browse files
feat: add biweekly contest 146 (doocs#3876)
1 parent 60d86dc commit 7c9283e

File tree

51 files changed

+1149
-463
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1149
-463
lines changed

‎solution/0300-0399/0357.Count Numbers with Unique Digits/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tags:
2929
<pre>
3030
<strong>输入:</strong>n = 2
3131
<strong>输出:</strong>91
32-
<strong>解释:</strong>答案应为除去 <code>11、22、33、44、55、66、77、88、99 </code>外,在 0 ≤ x &lt; 100 范围内的所有数字。
32+
<strong>解释:</strong>答案应为除去 <code>11、22、33、44、55、66、77、88、99 </code>外,在 0 ≤ x &lt; 100 范围内的所有数字。
3333
</pre>
3434

3535
<p><strong>示例 2:</strong></p>

‎solution/0500-0599/0552.Student Attendance Record II/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tags:
4242
<strong>输出:</strong>8
4343
<strong>解释:
4444
</strong>有 8 种长度为 2 的记录将被视为可奖励:
45-
"PP" , "AP", "PA", "LP", "PL", "AL", "LA", "LL"
45+
"PP" , "AP", "PA", "LP", "PL", "AL", "LA", "LL"
4646
只有"AA"不会被视为可奖励,因为缺勤次数为 2 次(需要少于 2 次)。
4747
</pre>
4848

‎solution/0600-0699/0600.Non-negative Integers without Consecutive Ones/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tags:
2525
<pre>
2626
<strong>输入:</strong> n = 5
2727
<strong>输出:</strong> 5
28-
<strong>解释:</strong>
28+
<strong>解释:</strong>
2929
下面列出范围在 [0, 5] 的非负整数与其对应的二进制表示:
3030
0 : 0
3131
1 : 1

‎solution/0600-0699/0600.Non-negative Integers without Consecutive Ones/README_EN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Here are the non-negative integers &lt;= 5 with their corresponding binary repre
3232
3 : 11
3333
4 : 100
3434
5 : 101
35-
Among them, only integer 3 disobeys the rule (two consecutive ones) and the other 5 satisfy the rule.
35+
Among them, only integer 3 disobeys the rule (two consecutive ones) and the other 5 satisfy the rule.
3636
</pre>
3737

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

‎solution/0700-0799/0788.Rotated Digits/README.md‎

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

3030
<pre><strong>输入:</strong> 10
3131
<strong>输出:</strong> 4
32-
<strong>解释:</strong>
32+
<strong>解释:</strong>
3333
在[1, 10]中有四个好数: 2, 5, 6, 9。
3434
注意 1 和 10 不是好数, 因为他们在旋转之后不变。
3535
</pre>

‎solution/0800-0899/0813.Largest Sum of Averages/README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ tags:
3131
<pre>
3232
<strong>输入:</strong> nums = [9,1,2,3,9], k = 3
3333
<strong>输出:</strong> 20.00000
34-
<strong>解释:</strong>
35-
nums 的最优分组是[9], [1, 2, 3], [9]. 得到的分数是 9 + (1 + 2 + 3) / 3 + 9 = 20.
36-
我们也可以把 nums 分成[9, 1], [2], [3, 9].
34+
<strong>解释:</strong>
35+
nums 的最优分组是[9], [1, 2, 3], [9]. 得到的分数是 9 + (1 + 2 + 3) / 3 + 9 = 20.
36+
我们也可以把 nums 分成[9, 1], [2], [3, 9].
3737
这样的分组得到的分数为 5 + 2 + 6 = 13, 但不是最大值.
3838
</pre>
3939

‎solution/0800-0899/0813.Largest Sum of Averages/README_EN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ tags:
3030
<pre>
3131
<strong>Input:</strong> nums = [9,1,2,3,9], k = 3
3232
<strong>Output:</strong> 20.00000
33-
<strong>Explanation:</strong>
33+
<strong>Explanation:</strong>
3434
The best choice is to partition nums into [9], [1, 2, 3], [9]. The answer is 9 + (1 + 2 + 3) / 3 + 9 = 20.
3535
We could have also partitioned nums into [9, 1], [2], [3, 9], for example.
3636
That partition would lead to a score of 5 + 2 + 6 = 13, which is worse.

‎solution/0800-0899/0877.Stone Game/README_EN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tags:
3333
<pre>
3434
<strong>Input:</strong> piles = [5,3,4,5]
3535
<strong>Output:</strong> true
36-
<strong>Explanation:</strong>
36+
<strong>Explanation:</strong>
3737
Alice starts first, and can only take the first 5 or the last 5.
3838
Say she takes the first 5, so that the row becomes [3, 4, 5].
3939
If Bob takes 3, then the board is [4, 5], and Alice takes 5 to win with 10 points.

‎solution/0800-0899/0887.Super Egg Drop/README.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,18 @@ tags:
2525
<p>每次操作,你可以取一枚没有碎的鸡蛋并把它从任一楼层 <code>x</code> 扔下(满足 <code>1 <= x <= n</code>)。如果鸡蛋碎了,你就不能再次使用它。如果某枚鸡蛋扔下后没有摔碎,则可以在之后的操作中 <strong>重复使用</strong> 这枚鸡蛋。</p>
2626

2727
<p>请你计算并返回要确定 <code>f</code> <strong>确切的值</strong> 的 <strong>最小操作次数</strong> 是多少?</p>
28+
2829

2930
<p><strong>示例 1:</strong></p>
3031

3132
<pre>
3233
<strong>输入:</strong>k = 1, n = 2
3334
<strong>输出:</strong>2
3435
<strong>解释:</strong>
35-
鸡蛋从 1 楼掉落。如果它碎了,肯定能得出 f = 0 。
36-
否则,鸡蛋从 2 楼掉落。如果它碎了,肯定能得出 f = 1 。
37-
如果它没碎,那么肯定能得出 f = 2 。
38-
因此,在最坏的情况下我们需要移动 2 次以确定 f 是多少。
36+
鸡蛋从 1 楼掉落。如果它碎了,肯定能得出 f = 0 。
37+
否则,鸡蛋从 2 楼掉落。如果它碎了,肯定能得出 f = 1 。
38+
如果它没碎,那么肯定能得出 f = 2 。
39+
因此,在最坏的情况下我们需要移动 2 次以确定 f 是多少。
3940
</pre>
4041

4142
<p><strong>示例 2:</strong></p>

‎solution/0900-0999/0977.Squares of a Sorted Array/README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tags:
2323
<ul>
2424
</ul>
2525

26-
<p></p>
26+
<p>&nbsp;</p>
2727

2828
<p><strong>示例 1:</strong></p>
2929

@@ -40,22 +40,22 @@ tags:
4040
<strong>输出:</strong>[4,9,9,49,121]
4141
</pre>
4242

43-
<p></p>
43+
<p>&nbsp;</p>
4444

4545
<p><strong>提示:</strong></p>
4646

4747
<ul>
48-
<li><code><span>1 <= nums.length <= </span>10<sup>4</sup></code></li>
49-
<li><code>-10<sup>4</sup> <= nums[i] <= 10<sup>4</sup></code></li>
48+
<li><code><span>1 &lt;= nums.length &lt;= </span>10<sup>4</sup></code></li>
49+
<li><code>-10<sup>4</sup> &lt;= nums[i] &lt;= 10<sup>4</sup></code></li>
5050
<li><code>nums</code> 已按 <strong>非递减顺序</strong> 排序</li>
5151
</ul>
5252

53-
<p></p>
53+
<p>&nbsp;</p>
5454

5555
<p><strong>进阶:</strong></p>
5656

5757
<ul>
58-
<li>请你<span style="color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">设计时间复杂度为 <code>O(n)</code> 的算法解决本问题</span></li>
58+
<li>请你设计时间复杂度为 <code>O(n)</code> 的算法解决本问题</li>
5959
</ul>
6060

6161
<!-- description:end -->

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /