Skip to content

Commit 3a0b5d1

Browse files
authored
feat:替换英文 (azl397985856#441)
1 parent 68b70da commit 3a0b5d1

File tree

136 files changed

+1842
-1425
lines changed

Some content is hidden

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

136 files changed

+1842
-1425
lines changed

SUMMARY.md

Lines changed: 159 additions & 160 deletions
Large diffs are not rendered by default.

problems/1011.capacity-to-ship-packages-within-d-days-cn.md renamed to problems/1011.capacity-to-ship-packages-within-d-days.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
## 题目地址(1011. 在 D 天内送达包裹的能力)
22

3-
https://leetcode-cn.com/problems/capacity-to-ship-packages-within-d-days
3+
https://leetcode-cn.com/problems/capacity-to-ship-packages-within-d-days/
44

55
## 题目描述
66

7+
```
8+
79
传送带上的包裹必须在 D 天内从一个港口运送到另一个港口。
810
911
传送带上的第 i  个包裹的重量为  weights[i]。每一天,我们都会按给出重量的顺序往传送带上装载包裹。我们装载的重量不会超过船的最大运载重量。
@@ -47,6 +49,8 @@ https://leetcode-cn.com/problems/capacity-to-ship-packages-within-d-days
4749
1 <= D <= weights.length <= 50000
4850
1 <= weights[i] <= 500
4951
52+
```
53+
5054
## 前置知识
5155

5256
- 二分法

problems/1014.best-sightseeing-pair.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
## 题目地址(1014. 最佳观光组合)
22

3-
https://leetcode-cn.com/problems/best-sightseeing-pair/description/
3+
https://leetcode-cn.com/problems/best-sightseeing-pair/
44

55
## 题目描述
66

7+
```
8+
79
给定正整数数组  A,A[i]  表示第 i 个观光景点的评分,并且两个景点  i 和  j  之间的距离为  j - i。
810
911
一对景点(i < j)组成的观光组合的得分为(A[i] + A[j] + i - j):景点的评分之和减去它们两者之间的距离。
@@ -21,6 +23,8 @@ https://leetcode-cn.com/problems/best-sightseeing-pair/description/
2123
2 <= A.length <= 50000
2224
1 <= A[i] <= 1000
2325
26+
```
27+
2428
## 前置知识
2529

2630
- 动态规划

problems/1015.smallest-integer-divisible-by-k.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## 题目地址
1+
## 题目地址(1015. 可被 K 整除的最小整数)
22

3-
https://leetcode-cn.com/problems/smallest-integer-divisible-by-k/description/
3+
https://leetcode-cn.com/problems/smallest-integer-divisible-by-k/
44

55
## 题目描述
66

problems/1019.next-greater-node-in-linked-list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## 题目地址
1+
## 题目地址(1019. 链表中的下一个更大节点)
22

3-
https://leetcode-cn.com/problems/next-greater-node-in-linked-list/submissions/
3+
https://leetcode-cn.com/problems/next-greater-node-in-linked-list/
44

55
## 题目描述
66

problems/102.binary-tree-level-order-traversal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
## 题目地址
3-
https://leetcode.com/problems/binary-tree-level-order-traversal/description/
2+
## 题目地址(102. 二叉树的层序遍历)
3+
https://leetcode-cn.com/problems/binary-tree-level-order-traversal/
44

55
## 题目描述
66
```

problems/1020.number-of-enclaves.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 题目地址
1+
## 题目地址(1020. 飞地的数量)
22

33
https://leetcode-cn.com/problems/number-of-enclaves/
44

problems/1023.camelcase-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 题目地址
1+
## 题目地址(1023. 驼峰式匹配)
22

33
https://leetcode-cn.com/problems/camelcase-matching/
44

problems/103.binary-tree-zigzag-level-order-traversal.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11

2-
## 题目地址
3-
https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/description/
2+
## 题目地址(103. 二叉树的锯齿形层次遍历)
3+
https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal/
44

55
## 题目描述
66
和leetcode 102 基本是一样的,思路是完全一样的。
77

88
```
9-
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
9+
给定一个二叉树,返回其节点值的锯齿形层次遍历。(即先从左往右,再从右往左进行下一层遍历,以此类推,层与层之间交替进行)。
10+
11+
例如:
12+
给定二叉树 [3,9,20,null,null,15,7],
1013
11-
For example:
12-
Given binary tree [3,9,20,null,null,15,7],
1314
3
1415
/ \
1516
9 20
1617
/ \
1718
15 7
18-
return its zigzag level order traversal as:
19+
返回锯齿形层次遍历如下:
20+
1921
[
2022
[3],
2123
[20,9],
2224
[15,7]
2325
]
26+
2427
```
2528

2629
## 前置知识

problems/1031.maximum-sum-of-two-non-overlapping-subarrays.md

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,43 @@
1-
## 题目地址
2-
https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/
1+
## 题目地址(1031. 两个非重叠子数组的最大和)
2+
https://leetcode-cn.com/problems/maximum-sum-of-two-non-overlapping-subarrays/
33

44
## 题目描述
55

66
```
7-
Given an array A of non-negative integers, return the maximum sum of elements in two non-overlapping (contiguous) subarrays, which have lengths L and M. (For clarification, the L-length subarray could occur before or after the M-length subarray.)
7+
给出非负整数数组 A ,返回两个非重叠(连续)子数组中元素的最大和,子数组的长度分别为 L 和 M。(这里需要澄清的是,长为 L 的子数组可以出现在长为 M 的子数组之前或之后。)
88
9-
Formally, return the largest V for which V = (A[i] + A[i+1] + ... + A[i+L-1]) + (A[j] + A[j+1] + ... + A[j+M-1]) and either:
9+
从形式上看,返回最大的 V,而 V = (A[i] + A[i+1] + ... + A[i+L-1]) + (A[j] + A[j+1] + ... + A[j+M-1]) 并满足下列条件之一:
1010
11-
0 <= i < i + L - 1 < j < j + M - 1 < A.length, or
11+
 
12+
13+
0 <= i < i + L - 1 < j < j + M - 1 < A.length, 或
1214
0 <= j < j + M - 1 < i < i + L - 1 < A.length.
13-
15+
 
1416
15-
Example 1:
17+
示例 1:
1618
17-
Input: A = [0,6,5,2,2,5,1,9,4], L = 1, M = 2
18-
Output: 20
19-
Explanation: One choice of subarrays is [9] with length 1, and [6,5] with length 2.
20-
Example 2:
19+
输入:A = [0,6,5,2,2,5,1,9,4], L = 1, M = 2
20+
输出:20
21+
解释:子数组的一种选择中,[9] 长度为 1,[6,5] 长度为 2。
22+
示例 2:
2123
22-
Input: A = [3,8,1,3,2,1,8,9,0], L = 3, M = 2
23-
Output: 29
24-
Explanation: One choice of subarrays is [3,8,1] with length 3, and [8,9] with length 2.
25-
Example 3:
24+
输入:A = [3,8,1,3,2,1,8,9,0], L = 3, M = 2
25+
输出:29
26+
解释:子数组的一种选择中,[3,8,1] 长度为 3,[8,9] 长度为 2。
27+
示例 3:
2628
27-
Input: A = [2,1,5,6,0,9,5,0,3,8], L = 4, M = 3
28-
Output: 31
29-
Explanation: One choice of subarrays is [5,6,0,9] with length 4, and [3,8] with length 3.
30-
29+
输入:A = [2,1,5,6,0,9,5,0,3,8], L = 4, M = 3
30+
输出:31
31+
解释:子数组的一种选择中,[5,6,0,9] 长度为 4,[0,3,8] 长度为 3。
32+
 
3133
32-
Note:
34+
提示:
3335
3436
L >= 1
3537
M >= 1
3638
L + M <= A.length <= 1000
3739
0 <= A[i] <= 1000
40+
3841
```
3942

4043
## 前置知识

0 commit comments

Comments
 (0)