Skip to content

Commit a7e7771

Browse files
author
Shuo
committed
A: new
1 parent 0dfdaa8 commit a7e7771

File tree

206 files changed

+1481
-175
lines changed

Some content is hidden

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

206 files changed

+1481
-175
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,22 @@ LeetCode Problems' Solutions
7878

7979
| # | Title | Solution | Difficulty |
8080
| :-: | - | - | :-: |
81+
| <span id="2004">2004</span> | [The Number of Seniors and Juniors to Join the Company](https://leetcode.com/problems/the-number-of-seniors-and-juniors-to-join-the-company) 🔒 | [MySQL](problems/the-number-of-seniors-and-juniors-to-join-the-company) | Hard |
82+
| <span id="2003">2003</span> | [Smallest Missing Genetic Value in Each Subtree](https://leetcode.com/problems/smallest-missing-genetic-value-in-each-subtree "每棵子树内缺失的最小基因值") | [Go](problems/smallest-missing-genetic-value-in-each-subtree) | Hard |
83+
| <span id="2002">2002</span> | [Maximum Product of the Length of Two Palindromic Subsequences](https://leetcode.com/problems/maximum-product-of-the-length-of-two-palindromic-subsequences "两个回文子序列长度的最大乘积") | [Go](problems/maximum-product-of-the-length-of-two-palindromic-subsequences) | Medium |
84+
| <span id="2001">2001</span> | [Number of Pairs of Interchangeable Rectangles](https://leetcode.com/problems/number-of-pairs-of-interchangeable-rectangles "可互换矩形的组数") | [Go](problems/number-of-pairs-of-interchangeable-rectangles) | Medium |
85+
| <span id="2000">2000</span> | [Reverse Prefix of Word](https://leetcode.com/problems/reverse-prefix-of-word "反转单词前缀") | [Go](problems/reverse-prefix-of-word) | Easy |
86+
| <span id="1999">1999</span> | [Smallest Greater Multiple Made of Two Digits](https://leetcode.com/problems/smallest-greater-multiple-made-of-two-digits) 🔒 | [Go](problems/smallest-greater-multiple-made-of-two-digits) | Medium |
87+
| <span id="1998">1998</span> | [GCD Sort of an Array](https://leetcode.com/problems/gcd-sort-of-an-array "数组的最大公因数排序") | [Go](problems/gcd-sort-of-an-array) | Hard |
88+
| <span id="1997">1997</span> | [First Day Where You Have Been in All the Rooms](https://leetcode.com/problems/first-day-where-you-have-been-in-all-the-rooms "访问完所有房间的第一天") | [Go](problems/first-day-where-you-have-been-in-all-the-rooms) | Medium |
89+
| <span id="1996">1996</span> | [The Number of Weak Characters in the Game](https://leetcode.com/problems/the-number-of-weak-characters-in-the-game "游戏中弱角色的数量") | [Go](problems/the-number-of-weak-characters-in-the-game) | Medium |
90+
| <span id="1995">1995</span> | [Count Special Quadruplets](https://leetcode.com/problems/count-special-quadruplets "统计特殊四元组") | [Go](problems/count-special-quadruplets) | Easy |
91+
| <span id="1994">1994</span> | [The Number of Good Subsets](https://leetcode.com/problems/the-number-of-good-subsets "好子集的数目") | [Go](problems/the-number-of-good-subsets) | Hard |
92+
| <span id="1993">1993</span> | [Operations on Tree](https://leetcode.com/problems/operations-on-tree "树上的操作") | [Go](problems/operations-on-tree) | Medium |
93+
| <span id="1992">1992</span> | [Find All Groups of Farmland](https://leetcode.com/problems/find-all-groups-of-farmland "找到所有的农场组") | [Go](problems/find-all-groups-of-farmland) | Medium |
94+
| <span id="1991">1991</span> | [Find the Middle Index in Array](https://leetcode.com/problems/find-the-middle-index-in-array "找到数组的中间位置") | [Go](problems/find-the-middle-index-in-array) | Easy |
95+
| <span id="1990">1990</span> | [Count the Number of Experiments](https://leetcode.com/problems/count-the-number-of-experiments) 🔒 | [MySQL](problems/count-the-number-of-experiments) | Medium |
96+
| <span id="1989">1989</span> | [Maximum Number of People That Can Be Caught in Tag](https://leetcode.com/problems/maximum-number-of-people-that-can-be-caught-in-tag) 🔒 | [Go](problems/maximum-number-of-people-that-can-be-caught-in-tag) | Medium |
8197
| <span id="1988">1988</span> | [Find Cutoff Score for Each School](https://leetcode.com/problems/find-cutoff-score-for-each-school) 🔒 | [MySQL](problems/find-cutoff-score-for-each-school) | Medium |
8298
| <span id="1987">1987</span> | [Number of Unique Good Subsequences](https://leetcode.com/problems/number-of-unique-good-subsequences "不同的好子序列数目") | [Go](problems/number-of-unique-good-subsequences) | Hard |
8399
| <span id="1986">1986</span> | [Minimum Number of Work Sessions to Finish the Tasks](https://leetcode.com/problems/minimum-number-of-work-sessions-to-finish-the-tasks "完成任务的最少工作时间段") | [Go](problems/minimum-number-of-work-sessions-to-finish-the-tasks) | Medium |

problems/4sum/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@
5454
1. [Two Sum](../two-sum) (Easy)
5555
1. [3Sum](../3sum) (Medium)
5656
1. [4Sum II](../4sum-ii) (Medium)
57+
1. [Count Special Quadruplets](../count-special-quadruplets) (Easy)

problems/all-paths-from-source-to-target/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@
6565
</ul>
6666

6767
### Related Topics
68+
[[Backtracking](../../tag/backtracking/README.md)]
6869
[[Depth-First Search](../../tag/depth-first-search/README.md)]
6970
[[Breadth-First Search](../../tag/breadth-first-search/README.md)]
7071
[[Graph](../../tag/graph/README.md)]
71-
[[Backtracking](../../tag/backtracking/README.md)]
72+
73+
### Similar Questions
74+
1. [Number of Ways to Arrive at Destination](../number-of-ways-to-arrive-at-destination) (Medium)

problems/arithmetic-subarrays/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ In the 2<sup>nd</sup> query, the subarray is <code>[5,9,3,7]. This</code> can be
6464
[[Array](../../tag/array/README.md)]
6565
[[Sorting](../../tag/sorting/README.md)]
6666

67+
### Similar Questions
68+
1. [Arithmetic Slices](../arithmetic-slices) (Medium)
69+
1. [Can Make Arithmetic Progression From Sequence](../can-make-arithmetic-progression-from-sequence) (Easy)
70+
6771
### Hints
6872
<details>
6973
<summary>Hint 1</summary>

problems/average-of-levels-in-binary-tree/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Given the <code>root</code> of a binary tree, return <em>the average value of th
1616
<p><strong>Example 1:</strong></p>
1717
<img alt="" src="https://assets.leetcode.com/uploads/2021/03/09/avg1-tree.jpg" style="width: 277px; height: 302px;" />
1818
<pre>
19-
<strong>Input:</strong> root = [3,9,20,null,15,7]
19+
<strong>Input:</strong> root = [3,9,20,null,null,15,7]
2020
<strong>Output:</strong> [3.00000,14.50000,11.00000]
2121
Explanation: The average value of nodes on level 0 is 3, on level 1 is 14.5, and on level 2 is 11.
2222
Hence return [3, 14.5, 11].

problems/avoid-flood-in-the-city/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ After that, it will rain over lakes [1,2]. It&#39;s easy to prove that no matter
9393
</ul>
9494

9595
### Related Topics
96-
[[Greedy](../../tag/greedy/README.md)]
9796
[[Array](../../tag/array/README.md)]
9897
[[Hash Table](../../tag/hash-table/README.md)]
9998
[[Binary Search](../../tag/binary-search/README.md)]
99+
[[Greedy](../../tag/greedy/README.md)]
100100
[[Heap (Priority Queue)](../../tag/heap-priority-queue/README.md)]
101101

102102
### Hints

problems/best-position-for-a-service-centre/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ Be careful with the precision!
7171
</ul>
7272

7373
### Related Topics
74-
[[Geometry](../../tag/geometry/README.md)]
7574
[[Math](../../tag/math/README.md)]
75+
[[Geometry](../../tag/geometry/README.md)]
7676
[[Randomized](../../tag/randomized/README.md)]
7777

7878
### Hints

problems/binary-search-tree-iterator-ii/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
[[Binary Tree](../../tag/binary-tree/README.md)]
2222
[[Iterator](../../tag/iterator/README.md)]
2323

24+
### Similar Questions
25+
1. [Binary Search Tree Iterator](../binary-search-tree-iterator) (Medium)
26+
2427
### Hints
2528
<details>
2629
<summary>Hint 1</summary>

problems/build-an-array-with-stack-operations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ Read number 3 and automatically push in the array -&gt; [1,3]
6868
</ul>
6969

7070
### Related Topics
71-
[[Stack](../../tag/stack/README.md)]
7271
[[Array](../../tag/array/README.md)]
72+
[[Stack](../../tag/stack/README.md)]
7373
[[Simulation](../../tag/simulation/README.md)]
7474

7575
### Hints

problems/bulb-switcher-iv/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ We need at least 3 flip operations to form target.</pre>
6969
</ul>
7070

7171
### Related Topics
72-
[[Greedy](../../tag/greedy/README.md)]
7372
[[String](../../tag/string/README.md)]
73+
[[Greedy](../../tag/greedy/README.md)]
7474

7575
### Hints
7676
<details>

0 commit comments

Comments
 (0)