diff --git a/solution/0000-0099/0066.Plus One/README.md b/solution/0000-0099/0066.Plus One/README.md index 8e92d53e6c143..6c48f063bb6d3 100644 --- a/solution/0000-0099/0066.Plus One/README.md +++ b/solution/0000-0099/0066.Plus One/README.md @@ -23,9 +23,9 @@ tags:

你可以假设除了整数 0 之外,这个整数不会以零开头。

-

 

+

 

-

示例 1:

+

示例 1:

 输入:digits = [1,2,3]
@@ -33,7 +33,7 @@ tags:
 解释:输入数组表示数字 123。
 
-

示例 2:

+

示例 2:

 输入:digits = [4,3,2,1]
@@ -44,17 +44,20 @@ tags:
 

示例 3:

-输入:digits = [0]
-输出:[1]
+输入:digits = [9]
+输出:[1,0]
+解释:输入数组表示数字 9。
+加 1 得到了 9 + 1 = 10。
+因此,结果应该是 [1,0]。
 
-

 

+

 

提示:

diff --git a/solution/0400-0499/0442.Find All Duplicates in an Array/README.md b/solution/0400-0499/0442.Find All Duplicates in an Array/README.md index e84c30318cc2c..ef097526e76fc 100644 --- a/solution/0400-0499/0442.Find All Duplicates in an Array/README.md +++ b/solution/0400-0499/0442.Find All Duplicates in an Array/README.md @@ -17,7 +17,7 @@ tags: -

给你一个长度为 n 的整数数组 nums ,其中 nums 的所有整数都在范围 [1, n] 内,且每个整数出现 一次两次 。请你找出所有出现 两次 的整数,并以数组形式返回。

+

给你一个长度为 n 的整数数组 nums ,其中 nums 的所有整数都在范围 [1, n] 内,且每个整数出现 最多两次 。请你找出所有出现 两次 的整数,并以数组形式返回。

你必须设计并实现一个时间复杂度为 O(n) 且仅使用常量额外空间(不包括存储输出所需的空间)的算法解决此问题。

diff --git a/solution/0400-0499/0480.Sliding Window Median/README_EN.md b/solution/0400-0499/0480.Sliding Window Median/README_EN.md index 51aec94e345d2..dc86f4186deeb 100644 --- a/solution/0400-0499/0480.Sliding Window Median/README_EN.md +++ b/solution/0400-0499/0480.Sliding Window Median/README_EN.md @@ -36,7 +36,7 @@ tags:
 Input: nums = [1,3,-1,-3,5,3,6,7], k = 3
 Output: [1.00000,-1.00000,-1.00000,3.00000,5.00000,6.00000]
-Explanation:
+Explanation: 
 Window position                Median
 ---------------                -----
 [1  3  -1] -3  5  3  6  7        1
diff --git a/solution/1200-1299/1233.Remove Sub-Folders from the Filesystem/README.md b/solution/1200-1299/1233.Remove Sub-Folders from the Filesystem/README.md
index 501c096c3277a..113dbea8ab033 100644
--- a/solution/1200-1299/1233.Remove Sub-Folders from the Filesystem/README.md	
+++ b/solution/1200-1299/1233.Remove Sub-Folders from the Filesystem/README.md	
@@ -23,7 +23,7 @@ tags:
 
 

你是一位系统管理员,手里有一份文件夹列表 folder,你的任务是要删除该列表中的所有 子文件夹,并以 任意顺序 返回剩下的文件夹。

-

如果文件夹 folder[i] 位于另一个文件夹 folder[j] 下,那么 folder[i] 就是 folder[j] 的 子文件夹

+

如果文件夹 folder[i] 位于另一个文件夹 folder[j] 下,那么 folder[i] 就是 folder[j] 的 子文件夹folder[j] 的子文件夹必须以 folder[j] 开头,后跟一个 "/"。例如,"/a/b" 是 "/a" 的一个子文件夹,但 "/b" 不是 "/a/b/c" 的一个子文件夹。

文件夹的「路径」是由一个或多个按以下格式串联形成的字符串:'/' 后跟一个或者多个小写英文字母。

diff --git a/solution/1200-1299/1233.Remove Sub-Folders from the Filesystem/README_EN.md b/solution/1200-1299/1233.Remove Sub-Folders from the Filesystem/README_EN.md index c66d3b17fff4f..e26defdb14da8 100644 --- a/solution/1200-1299/1233.Remove Sub-Folders from the Filesystem/README_EN.md +++ b/solution/1200-1299/1233.Remove Sub-Folders from the Filesystem/README_EN.md @@ -23,7 +23,7 @@ tags:

Given a list of folders folder, return the folders after removing all sub-folders in those folders. You may return the answer in any order.

-

If a folder[i] is located within another folder[j], it is called a sub-folder of it.

+

If a folder[i] is located within another folder[j], it is called a sub-folder of it. A sub-folder of folder[j] must start with folder[j], followed by a "/". For example, "/a/b" is a sub-folder of "/a", but "/b" is not a sub-folder of "/a/b/c".

The format of a path is one or more concatenated strings of the form: '/' followed by one or more lowercase English letters.

diff --git a/solution/2100-2199/2102.Sequentially Ordinal Rank Tracker/README.md b/solution/2100-2199/2102.Sequentially Ordinal Rank Tracker/README.md index ab2779fcc5ade..c24b59d52721f 100644 --- a/solution/2100-2199/2102.Sequentially Ordinal Rank Tracker/README.md +++ b/solution/2100-2199/2102.Sequentially Ordinal Rank Tracker/README.md @@ -59,7 +59,7 @@ tags: SORTracker tracker = new SORTracker(); // 初始化系统 tracker.add("bradford", 2); // 添加 name="bradford" 且 score=2 的景点。 tracker.add("branford", 3); // 添加 name="branford" 且 score=3 的景点。 -tracker.get(); // 从好带坏的景点为:branford ,bradford 。 +tracker.get(); // 从好到坏的景点为:branford ,bradford 。 // 注意到 branford 比 bradford 好,因为它的 评分更高 (3 > 2) 。 // 这是第 1 次调用 get() ,所以返回最好的景点:"branford" 。 tracker.add("alps", 2); // 添加 name="alps" 且 score=2 的景点。 diff --git a/solution/3000-3099/3095.Shortest Subarray With OR at Least K I/README.md b/solution/3000-3099/3095.Shortest Subarray With OR at Least K I/README.md index 4236141ac07c9..ae649c2a8725f 100644 --- a/solution/3000-3099/3095.Shortest Subarray With OR at Least K I/README.md +++ b/solution/3000-3099/3095.Shortest Subarray With OR at Least K I/README.md @@ -38,6 +38,8 @@ tags:

解释:

子数组 [3] 的按位 OR 值为 3 ,所以我们返回 1 。

+ +

注意,[2] 也是一个特别子数组。

示例 2:

diff --git a/solution/3300-3399/3319.K-th Largest Perfect Subtree Size in Binary Tree/README.md b/solution/3300-3399/3319.K-th Largest Perfect Subtree Size in Binary Tree/README.md index c576073612048..60f93f9b3f0cf 100644 --- a/solution/3300-3399/3319.K-th Largest Perfect Subtree Size in Binary Tree/README.md +++ b/solution/3300-3399/3319.K-th Largest Perfect Subtree Size in Binary Tree/README.md @@ -25,8 +25,6 @@ tags:

完美二叉树 是指所有叶子节点都在同一层级的树,且每个父节点恰有两个子节点。

-

子树 是指树中的某一个节点及其所有后代形成的树。

-

 

示例 1:

diff --git a/solution/3300-3399/3323.Minimize Connected Groups by Inserting Interval/README.md b/solution/3300-3399/3323.Minimize Connected Groups by Inserting Interval/README.md index 040d357a4aded..c36f08f6e5b84 100644 --- a/solution/3300-3399/3323.Minimize Connected Groups by Inserting Interval/README.md +++ b/solution/3300-3399/3323.Minimize Connected Groups by Inserting Interval/README.md @@ -30,7 +30,7 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3323.Mi
  • 然而,区间组 [[1, 2], [3, 4]] 不是连通的,因为 (2, 3) 段没有被覆盖。
  • -

    返回在添加 恰好一个 新区间到数组后连通组的 最小 数量。

    +

    返回在数组添加 恰好一个 新区间后,连通组的 最小 数量。