Skip to content

Commit

Permalink
更新题解图片链接微本地链接
Browse files Browse the repository at this point in the history
  • Loading branch information
itcharge committed May 14, 2024
1 parent 1437672 commit b27e95e
Show file tree
Hide file tree
Showing 107 changed files with 302 additions and 302 deletions.
10 changes: 5 additions & 5 deletions docs/ch01/01.02/01.02.03-Exercises.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

- 示例 1:

![](https://assets.leetcode.com/uploads/2020/08/28/mat1.jpg)
![](../../images/20201024004801.jpg)

```python
输入:matrix = [[1,2,3],[4,5,6],[7,8,9]]
Expand All @@ -28,7 +28,7 @@

- 示例 2:

![](https://assets.leetcode.com/uploads/2020/08/28/mat2.jpg)
![](../../images/20201024004802.jpg)

```python
输入:matrix = [[5,1,9,11],[2,4,8,10],[13,3,6,7],[15,14,12,16]]
Expand All @@ -54,7 +54,7 @@

- 示例 1:

![](https://assets.leetcode.com/uploads/2020/11/13/spiral1.jpg)
![](../../images/20201024005401.jpg)

```python
输入:matrix = [[1,2,3],[4,5,6],[7,8,9]]
Expand All @@ -63,7 +63,7 @@

- 示例 2:

![](https://assets.leetcode.com/uploads/2020/11/13/spiral.jpg)
![](../../images/20201024005402.jpg)

```python
输入:matrix = [[1,2,3,4],[5,6,7,8],[9,10,11,12]]
Expand All @@ -90,7 +90,7 @@

- 示例 1:

![](https://assets.leetcode.com/uploads/2021/04/10/diag1-grid.jpg)
![](../../images/20201024049801.jpg)

```python
输入:mat = [[1,2,3],[4,5,6],[7,8,9]]
Expand Down
2 changes: 1 addition & 1 deletion docs/ch01/01.05/01.05.01-Array-Two-Pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class Solution:

**示例**

![](https://aliyun-lc-upload.oss-cn-hangzhou.aliyuncs.com/aliyun-lc-upload/uploads/2018/07/25/question_11.jpg)
![](../../images/20201024001101.jpg)

```python
输入:[1,8,6,2,5,4,8,3,7]
Expand Down
2 changes: 1 addition & 1 deletion docs/ch02/02.01/02.01.02-Exercises.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ linkedList.get(1); // 返回 3

**示例**

![](https://assets.leetcode.com/uploads/2021/03/06/removelinked-list.jpg)
![](../../images/20201024020301.jpg)

```python
输入:head = [1,2,6,3,4,5,6], val = 6
Expand Down
12 changes: 6 additions & 6 deletions docs/ch02/02.01/02.01.03-Exercises.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

**示例**

![](https://assets.leetcode.com/uploads/2021/03/10/oddeven-linked-list.jpg)
![](../../images/20201024032801.jpg)

```python
输入: head = [1,2,3,4,5]
输出: [1,3,5,2,4]
```

![](https://assets.leetcode.com/uploads/2021/03/10/oddeven2-linked-list.jpg)
![](../../images/20201024032802.jpg)

```python
输入: head = [2,1,3,5,6,4,7]
Expand All @@ -46,14 +46,14 @@

**示例**

![](https://assets.leetcode.com/uploads/2021/03/03/pal1linked-list.jpg)
![](../../images/20201024023401.jpg)

```python
输入:head = [1,2,2,1]
输出:True
```

![](https://assets.leetcode.com/uploads/2021/03/03/pal2linked-list.jpg)
![](../../images/20201024023402.jpg)

```python
输入:head = [1,2]
Expand All @@ -76,14 +76,14 @@

**示例**

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/01/09/e1.png)
![](../../images/20201024013801.png)

```python
输入:head = [[7,null],[13,0],[11,4],[10,2],[1,0]]
输出:[[7,null],[13,0],[11,4],[10,2],[1,0]]
```

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/01/09/e2.png)
![](../../images/20201024013802.png)

```python
输入:head = [[1,1],[2,1]]
Expand Down
10 changes: 5 additions & 5 deletions docs/ch02/02.01/02.01.06-Exercises.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@

**示例**

![](https://assets.leetcode.com/uploads/2021/03/04/sort1linked-list.jpg)
![](../../images/20201024014701.jpg)

```python
输入: head = [4,2,1,3]
输出: [1,2,3,4]
```

![](https://assets.leetcode.com/uploads/2021/03/04/sort2linked-list.jpg)
![](../../images/20201024014702.jpg)

```python
输入: head = [-1,5,3,4,0]
Expand All @@ -49,7 +49,7 @@

**示例**

![](https://assets.leetcode.com/uploads/2020/10/03/merge_ex1.jpg)
![](../../images/20201024002101.jpg)

```python
输入:list1 = [1,2,4], list2 = [1,3,4]
Expand All @@ -75,14 +75,14 @@

**示例**

![](https://assets.leetcode.com/uploads/2020/09/14/sort_list_1.jpg)
![](../../images/20201024014801.jpg)

```python
输入:head = [4,2,1,3]
输出:[1,2,3,4]
```

![](https://assets.leetcode.com/uploads/2020/09/14/sort_list_2.jpg)
![](../../images/20201024014802.jpg)

```python
输入:head = [-1,5,3,4,0]
Expand Down
8 changes: 4 additions & 4 deletions docs/ch02/02.01/02.01.08-Linked-List-Two-Pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ while fast:

**示例**

![](https://assets.leetcode.com/uploads/2020/10/03/remove_ex1.jpg)
![](../../images/20201024001901.jpg)

```python
输入:head = [1,2,3,4,5], n = 2
Expand Down Expand Up @@ -234,15 +234,15 @@ class Solution:

**示例**

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2018/12/07/circularlinkedlist.png)
![](../../images/20201024014101.png)

```python
输入:head = [3,2,0,-4], pos = 1
输出:True
解释:链表中有一个环,其尾部连接到第二个节点。
```

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2018/12/07/circularlinkedlist_test2.png)
![](../../images/20201024014202.png)

```python
输入:head = [1,2], pos = 0
Expand Down Expand Up @@ -359,7 +359,7 @@ while left_1 and left_2:

**示例**

![](https://assets.leetcode.com/uploads/2020/10/03/merge_ex1.jpg)
![](../../images/20201024002101.jpg)

```python
输入:list1 = [1,2,4], list2 = [1,3,4]
Expand Down
10 changes: 5 additions & 5 deletions docs/ch02/02.01/02.01.09-Exercises.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@

**示例**

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2018/12/07/circularlinkedlist.png)
![](../../images/20201024014101.png)

```python
输入:head = [3,2,0,-4], pos = 1
输出:True
解释:链表中有一个环,其尾部连接到第二个节点。
```

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2018/12/07/circularlinkedlist_test2.png)
![](../../images/20201024014202.png)

```python
输入:head = [1,2], pos = 0
Expand All @@ -48,15 +48,15 @@

**示例**

![](https://assets.leetcode.com/uploads/2018/12/07/circularlinkedlist.png)
![](../../images/20201024014201.png)

```python
输入:head = [3,2,0,-4], pos = 1
输出:返回索引为 1 的链表节点
解释:链表中有一个环,其尾部连接到第二个节点。
```

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2018/12/07/circularlinkedlist_test2.png)
![](../../images/20201024014202.png)

```python
输入:head = [1,2], pos = 0
Expand All @@ -82,7 +82,7 @@

**示例**

![](https://assets.leetcode.com/uploads/2020/10/03/remove_ex1.jpg)
![](../../images/20201024001901.jpg)

```python
输入:head = [1,2,3,4,5], n = 2
Expand Down
4 changes: 2 additions & 2 deletions docs/ch02/02.03/02.03.01-DFS.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class Solution:

**示例**

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/02/01/133_clone_graph_question.png)
![](../../images/20201024013301.png)

```python
输入:adjList = [[2,4],[1,3],[2,4],[1,3]]
Expand All @@ -277,7 +277,7 @@ class Solution:
节点 4 的值是 4,它有两个邻居:节点 13
```

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/02/01/graph-1.png)
![](../../images/20201024013302.png)

```python
输入:adjList = [[2],[1]]
Expand Down
4 changes: 2 additions & 2 deletions docs/ch02/02.03/02.03.02-Exercises.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

**示例**

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/02/01/133_clone_graph_question.png)
![](../../images/20201024013301.png)

```python
输入:adjList = [[2,4],[1,3],[2,4],[1,3]]
Expand All @@ -69,7 +69,7 @@
节点 4 的值是 4,它有两个邻居:节点 13
```

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/02/01/graph-1.png)
![](../../images/20201024013302.png)

```python
输入:adjList = [[2],[1]]
Expand Down
4 changes: 2 additions & 2 deletions docs/ch02/02.03/02.03.03-Exercises.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

**示例**

![](https://assets.leetcode.com/uploads/2021/05/01/maxarea1-grid.jpg)
![](../../images/20201024069501.jpg)

```python
输入:grid = [[0,0,1,0,0,0,0,1,0,0,0,0,0],[0,0,0,0,0,0,0,1,1,1,0,0,0],[0,1,1,0,1,0,0,0,0,0,0,0,0],[0,1,0,0,1,1,0,0,1,0,1,0,0],[0,1,0,0,1,1,0,0,1,1,1,0,0],[0,0,0,0,0,0,0,0,0,0,1,0,0],[0,0,0,0,0,0,0,1,1,1,0,0,0],[0,0,0,0,0,0,0,1,1,0,0,0,0]]
Expand Down Expand Up @@ -83,7 +83,7 @@

**示例**

![](https://assets.leetcode.com/uploads/2021/02/19/xogrid.jpg)
![](../../images/20201024013001.jpg)

```python
输入:board = [["X","X","X","X"],["X","O","O","X"],["X","X","O","X"],["X","O","X","X"]]
Expand Down
10 changes: 5 additions & 5 deletions docs/ch02/02.03/02.03.04-Exercises.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

**示例**

![](https://assets.leetcode.com/uploads/2021/06/08/waterflow-grid.jpg)
![](../../images/20201024041701.jpg)

```python
输入: heights = [[1,2,2,3,5],[3,2,3,4,4],[2,4,5,3,1],[6,7,1,4,5],[5,1,1,2,4]]
Expand Down Expand Up @@ -45,15 +45,15 @@

**示例**

![](https://assets.leetcode.com/uploads/2021/02/18/enclaves1.jpg)
![](../../images/20201024102001.jpg)

```python
输入:grid = [[0,0,0,0],[1,0,1,0],[0,1,1,0],[0,0,0,0]]
输出:3
解释:有三个 10 包围。一个 1 没有被包围,因为它在边界上。
```

![](https://assets.leetcode.com/uploads/2021/02/18/enclaves2.jpg)
![](../../images/20201024102002.jpg)

```python
输入:grid = [[0,1,1,0],[0,0,1,0],[0,0,1,0],[0,0,0,0]]
Expand All @@ -80,15 +80,15 @@

**示例**

![](https://assets.leetcode.com/uploads/2019/10/31/sample_3_1610.png)
![](../../images/20201024125401.png)

```python
输入:grid = [[1,1,1,1,1,1,1,0],[1,0,0,0,0,1,1,0],[1,0,1,0,1,1,1,0],[1,0,0,0,0,1,0,1],[1,1,1,1,1,1,1,0]]
输出:2
解释:灰色区域的岛屿是封闭岛屿,因为这座岛屿完全被水域包围(即被 1 区域包围)。
```

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2019/11/07/sample_4_1610.png)
![](../../images/20201024125402.png)

```python
输入:grid = [[0,0,1,0,0],[0,1,0,1,0],[0,1,1,1,0]]
Expand Down
6 changes: 3 additions & 3 deletions docs/ch02/02.05/02.05.01-BFS.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Solution().bfs(graph, "0")

- 示例 1:

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/02/01/133_clone_graph_question.png)
![](../../images/20201024013301.png)

```python
输入:adjList = [[2,4],[1,3],[2,4],[1,3]]
Expand All @@ -135,7 +135,7 @@ Solution().bfs(graph, "0")

- 示例 2:

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/02/01/graph-1.png)
![](../../images/20201024013302.png)

```python
输入:adjList = [[2],[1]]
Expand Down Expand Up @@ -208,7 +208,7 @@ class Solution:

- 示例 1:

![](https://assets.leetcode.com/uploads/2021/05/01/maxarea1-grid.jpg)
![](../../images/20201024069501.jpg)

```python
输入:grid = [[0,0,1,0,0,0,0,1,0,0,0,0,0],[0,0,0,0,0,0,0,1,1,1,0,0,0],[0,1,1,0,1,0,0,0,0,0,0,0,0],[0,1,0,0,1,1,0,0,1,0,1,0,0],[0,1,0,0,1,1,0,0,1,1,1,0,0],[0,0,0,0,0,0,0,0,0,0,1,0,0],[0,0,0,0,0,0,0,1,1,1,0,0,0],[0,0,0,0,0,0,0,1,1,0,0,0,0]]
Expand Down
2 changes: 1 addition & 1 deletion docs/ch02/02.05/02.05.02-Exercises.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

**示例**

![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2018/10/12/island.png)
![](../../images/20201024046301.png)

```python
输入:grid = [[0,1,0,0],[1,1,1,0],[0,1,0,0],[1,1,0,0]]
Expand Down
4 changes: 2 additions & 2 deletions docs/ch02/02.05/02.05.03-Exercises.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@

**示例**

![](https://pic.leetcode-cn.com/1626667201-NCWmuP-image.png)
![](../../images/20201024054201.png)

```python
输入:mat = [[0,0,0],[0,1,0],[0,0,0]]
输出:[[0,0,0],[0,1,0],[0,0,0]]
```

![](https://pic.leetcode-cn.com/1626667205-xFxIeK-image.png)
![](../../images/20201024054202.png)

```python
输入:mat = [[0,0,0],[0,1,0],[1,1,1]]
Expand Down
2 changes: 1 addition & 1 deletion docs/ch02/02.06/02.06.01-Graph-Topological-Sorting.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class Solution:

- 示例 1:

![](https://s3-lc-upload.s3.amazonaws.com/uploads/2018/03/17/picture1.png)
![](../../images/20201024080201.png)

```python
输入:graph = [[1,2],[2,3],[5],[0],[5],[],[]]
Expand Down
Loading

0 comments on commit b27e95e

Please sign in to comment.