Skip to content

Commit 05bb4aa

Browse files
committed
更新章节习题解析链接
1 parent fb4b93a commit 05bb4aa

File tree

104 files changed

+732
-32
lines changed

Some content is hidden

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

104 files changed

+732
-32
lines changed

docs/ch01/01.01/01.01.04-Exercises.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,10 @@
101101
```python
102102
输入:jewels = "z", stones = "ZZ"
103103
输出:0
104-
```
104+
```
105+
## 习题解析
106+
107+
1.[2235. 两整数相加](https://leetcode.cn/problems/add-two-integers/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/2235)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/2235.md)
108+
2.[1929. 数组串联](https://leetcode.cn/problems/concatenation-of-array/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/1929)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/1929.md)
109+
3.[0771. 宝石与石头](https://leetcode.cn/problems/jewels-and-stones/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0771)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0771.md)
110+

docs/ch01/01.01/01.01.05-Exercises.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,10 @@
101101
2 位客户的资产总量 = 10
102102
3 位客户的资产总量 = 8
103103
2 位客户是最富有的,资产总量是 10,所以返回 10
104-
```
104+
```
105+
## 习题解析
106+
107+
1.[1480. 一维数组的动态和](https://leetcode.cn/problems/running-sum-of-1d-array/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/1480)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/1480.md)
108+
2.[0709. 转换成小写字母](https://leetcode.cn/problems/to-lower-case/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0709)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0709.md)
109+
3.[1672. 最富有客户的资产总量](https://leetcode.cn/problems/richest-customer-wealth/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/1672)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/1672.md)
110+

docs/ch01/01.02/01.02.02-Exercises.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,10 @@
102102
解释:
103103
向右轮转 1 步: [99,-1,-100,3]
104104
向右轮转 2 步: [3,99,-1,-100]
105-
```
105+
```
106+
## 习题解析
107+
108+
1.[0066. 加一](https://leetcode.cn/problems/plus-one/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0066)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0066.md)
109+
2.[0724. 寻找数组的中心下标](https://leetcode.cn/problems/find-pivot-index/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0724)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0724.md)
110+
3.[0189. 轮转数组](https://leetcode.cn/problems/rotate-array/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0189)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0189.md)
111+

docs/ch01/01.02/01.02.03-Exercises.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,10 @@
102102
```python
103103
输入:mat = [[1,2],[3,4]]
104104
输出:[1,2,3,4]
105-
```
105+
```
106+
## 习题解析
107+
108+
1.[0048. 旋转图像](https://leetcode.cn/problems/rotate-image/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0048)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0048.md)
109+
2.[0054. 螺旋矩阵](https://leetcode.cn/problems/spiral-matrix/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0054)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0054.md)
110+
3.[0498. 对角线遍历](https://leetcode.cn/problems/diagonal-traverse/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0498)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0498.md)
111+

docs/ch01/01.03/01.03.04-Exercises.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,10 @@
8787
```python
8888
输入:nums = [5,1,1,2,0,0]
8989
输出:[0,0,1,1,2,5]
90-
```
90+
```
91+
## 习题解析
92+
93+
1.[剑指 Offer 45. 把数组排成最小的数](https://leetcode.cn/problems/ba-shu-zu-pai-cheng-zui-xiao-de-shu-lcof/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/Offer-45)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/Offer-45.md)
94+
2.[0283. 移动零](https://leetcode.cn/problems/move-zeroes/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0283)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0283.md)
95+
3.[0912. 排序数组](https://leetcode.cn/problems/sort-an-array/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0912)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0912.md)
96+

docs/ch01/01.03/01.03.07-Exercises.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,10 @@
9090
```python
9191
输入: [7,5,6,4]
9292
输出: 5
93-
```
93+
```
94+
## 习题解析
95+
96+
1.[0506. 相对名次](https://leetcode.cn/problems/relative-ranks/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0506)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0506.md)
97+
2.[0088. 合并两个有序数组](https://leetcode.cn/problems/merge-sorted-array/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0088)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0088.md)
98+
3.[剑指 Offer 51. 数组中的逆序对](https://leetcode.cn/problems/shu-zu-zhong-de-ni-xu-dui-lcof/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/Offer-51)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/Offer-51.md)
99+

docs/ch01/01.03/01.03.10-Exercises.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,10 @@
8888
```python
8989
输入:arr = [0,1,2,1], k = 1
9090
输出:[0]
91-
```
91+
```
92+
## 习题解析
93+
94+
1.[0075. 颜色分类](https://leetcode.cn/problems/sort-colors/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0075)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0075.md)
95+
2.[0215. 数组中的第K个最大元素](https://leetcode.cn/problems/kth-largest-element-in-an-array/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0215)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0215.md)
96+
3.[剑指 Offer 40. 最小的k个数](https://leetcode.cn/problems/zui-xiao-de-kge-shu-lcof/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/Offer-40)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/Offer-40.md)
97+

docs/ch01/01.03/01.03.14-Exercises.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,10 @@
8989
输入: nums = [10]
9090
输出: 0
9191
解释: 数组元素个数小于 2,因此返回 0
92-
```
92+
```
93+
## 习题解析
94+
95+
1.[1122. 数组的相对排序](https://leetcode.cn/problems/relative-sort-array/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/1122)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/1122.md)
96+
2.[0220. 存在重复元素 III](https://leetcode.cn/problems/contains-duplicate-iii/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0220)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0220.md)
97+
3.[0164. 最大间距](https://leetcode.cn/problems/maximum-gap/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0164)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0164.md)
98+

docs/ch01/01.04/01.04.03-Exercises.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,10 @@
8585
```python
8686
输入:n = 1, pick = 1
8787
输出:1
88-
```
88+
```
89+
## 习题解析
90+
91+
1.[0704. 二分查找](https://leetcode.cn/problems/binary-search/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0704)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0704.md)
92+
2.[0035. 搜索插入位置](https://leetcode.cn/problems/search-insert-position/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0035)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0035.md)
93+
3.[0374. 猜数字大小](https://leetcode.cn/problems/guess-number-higher-or-lower/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0374)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0374.md)
94+

docs/ch01/01.04/01.04.04-Exercises.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,10 @@
101101
1 天:3, 2
102102
2 天:2, 4
103103
3 天:1, 4
104-
```
104+
```
105+
## 习题解析
106+
107+
1.[0069. x 的平方根](https://leetcode.cn/problems/sqrtx/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0069)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0069.md)
108+
2.[0167. 两数之和 II - 输入有序数组](https://leetcode.cn/problems/two-sum-ii-input-array-is-sorted/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/0167)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/0167.md)
109+
3.[1011. 在 D 天内送达包裹的能力](https://leetcode.cn/problems/capacity-to-ship-packages-within-d-days/)」习题解析:[网页链接](https://datawhalechina.github.io/leetcode-notes/#/solutions/1011)[Github 链接](https://github.com/datawhalechina/leetcode-notes/blob/main/docs/solutions/1011.md)
110+

0 commit comments

Comments
 (0)