Skip to content

Commit 17f24f0

Browse files
authored
feat: add weekly contest (doocs#3926)
1 parent fd7c89f commit 17f24f0

File tree

148 files changed

+2896
-43
lines changed

Some content is hidden

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

148 files changed

+2896
-43
lines changed

solution/0000-0099/0079.Word Search/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/0000-0099/0079.Word%20Search/README.md
55
tags:
6+
- 深度优先搜索
67
- 数组
78
- 字符串
89
- 回溯

solution/0000-0099/0079.Word Search/README_EN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ comments: true
33
difficulty: Medium
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/0000-0099/0079.Word%20Search/README_EN.md
55
tags:
6+
- Depth-First Search
67
- Array
78
- String
89
- Backtracking

solution/0100-0199/0151.Reverse Words in a String/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ tags:
3030
<p><strong>示例 1:</strong></p>
3131

3232
<pre>
33-
<strong>输入:</strong>s = "<code>the sky is blue</code>"
34-
<strong>输出:</strong>"<code>blue is sky the</code>"
33+
<strong>输入:</strong>s = "the sky is blue"
34+
<strong>输出:</strong>"blue is sky the"
3535
</pre>
3636

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

solution/0100-0199/0153.Find Minimum in Rotated Sorted Array/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tags:
4545
<pre>
4646
<strong>输入:</strong>nums = [4,5,6,7,0,1,2]
4747
<strong>输出:</strong>0
48-
<strong>解释:</strong>原数组为 [0,1,2,4,5,6,7] ,旋转 3 次得到输入数组。
48+
<strong>解释:</strong>原数组为 [0,1,2,4,5,6,7] ,旋转 4 次得到输入数组。
4949
</pre>
5050

5151
<p><strong>示例 3:</strong></p>

solution/0100-0199/0185.Department Top Three Salaries/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ Department 表:
104104
- 山姆的薪水第二高
105105
- 没有第三高的工资,因为只有两名员工</pre>
106106

107+
<p>&nbsp;</p>
108+
109+
<p><strong>提示:</strong></p>
110+
111+
<ul>
112+
<li>没有姓名、薪资和部门 <strong>完全</strong> 相同的员工。</li>
113+
</ul>
114+
107115
<!-- description:end -->
108116

109117
## 解法

solution/0100-0199/0185.Department Top Three Salaries/README_EN.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ In the Sales department:
104104
- There is no third-highest salary as there are only two employees
105105
</pre>
106106

107+
<p>&nbsp;</p>
108+
<p><strong>Constraints:</strong></p>
109+
110+
<ul>
111+
<li>There are no employees with the <strong>exact</strong> same name, salary <em>and</em> department.</li>
112+
</ul>
113+
107114
<!-- description:end -->
108115

109116
## Solutions

solution/0200-0299/0207.Course Schedule/README_EN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tags:
3333
<pre>
3434
<strong>Input:</strong> numCourses = 2, prerequisites = [[1,0]]
3535
<strong>Output:</strong> true
36-
<strong>Explanation:</strong> There are a total of 2 courses to take.
36+
<strong>Explanation:</strong> There are a total of 2 courses to take.
3737
To take course 1 you should have finished course 0. So it is possible.
3838
</pre>
3939

@@ -42,7 +42,7 @@ To take course 1 you should have finished course 0. So it is possible.
4242
<pre>
4343
<strong>Input:</strong> numCourses = 2, prerequisites = [[1,0],[0,1]]
4444
<strong>Output:</strong> false
45-
<strong>Explanation:</strong> There are a total of 2 courses to take.
45+
<strong>Explanation:</strong> There are a total of 2 courses to take.
4646
To take course 1 you should have finished course 0, and to take course 0 you should also have finished course 1. So it is impossible.
4747
</pre>
4848

solution/0400-0499/0439.Ternary Expression Parser/README.md

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

2323
<p>你可以总是假设给定的表达式是有效的,并且只包含数字,&nbsp;<code>'?'</code>&nbsp;&nbsp;&nbsp;<code>':'</code>&nbsp;&nbsp;&nbsp;<code>'T'</code>&nbsp;和 <code>'F'</code> ,其中 <code>'T'</code> 为真, <code>'F'</code> 为假。表达式中的所有数字都是 <strong>一位</strong> 数(即在 <strong>[0,9] </strong>范围内)。</p>
2424

25-
<p>条件表达式从右到左分组(大多数语言中都是这样),表达式的结果总是为数字 <code>'T'</code> 或 <code>'F'</code> 。</p>
25+
<p>条件表达式从右到左分组(大多数语言中都是这样),表达式的结果总是为数字<code>'T'</code> 或 <code>'F'</code> 。</p>
2626

2727
<p>&nbsp;</p>
2828

solution/0500-0599/0536.Construct Binary Tree from String/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ tags:
5656
<ul>
5757
<li><code>0 &lt;= s.length &lt;= 3 * 10<sup>4</sup></code></li>
5858
<li>输入字符串中只包含&nbsp;<code>'('</code>, <code>')'</code>, <code>'-'</code>&nbsp;和&nbsp;<code>'0'</code> ~ <code>'9'</code>&nbsp;</li>
59-
<li>空树由&nbsp;<code>""</code>&nbsp;而非<code>"()"</code>表示。</li>
59+
<li>树中所有数字的值 <strong>最多</strong> 不超过&nbsp;<code>2<sup>30</sup></code>。</li>
6060
</ul>
6161

6262
<!-- description:end -->

solution/0500-0599/0536.Construct Binary Tree from String/README_EN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ tags:
5454
<ul>
5555
<li><code>0 &lt;= s.length &lt;= 3 * 10<sup>4</sup></code></li>
5656
<li><code>s</code> consists of digits, <code>&#39;(&#39;</code>, <code>&#39;)&#39;</code>, and <code>&#39;-&#39;</code> only.</li>
57+
<li>All numbers in the tree have value <strong>at most</strong> than <code>2<sup>30</sup></code>.</li>
5758
</ul>
5859

5960
<!-- description:end -->

0 commit comments

Comments
 (0)