Skip to content

Commit 7acd5fe

Browse files
author
lucifer
committed
fix: 修复无法制作电子书的问题
1 parent 04c4081 commit 7acd5fe

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
电子书有更新我也会在公众号《力扣加加》进行通知, 感兴趣的同学可以关注一下。
3737

38-
个人不建议使用 html 和 epub,建议大家从**在线版,pdf 和 mobi** 选择适合自己的格式下载即可。html, pdf,mobi 和 epub 格式,关注我的公众号《力扣加加》回复`电子书`即可。
38+
个人建议大家从**在线版,pdf 和 mobi** 选择适合自己的格式下载即可。pdf,mobi 和 epub 格式,关注我的公众号《力扣加加》回复`电子书`即可。
3939

4040
## :newspaper:  订阅
4141

SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* [第一章 - 算法专题](thinkings/README.md)
77
* [数据结构](thinkings/basic-data-structure.md)
88
* [链表专题](thinkings/linked-list.md)
9-
* [树专题](./thinkings/tree.md)
9+
* [树专题](thinkings/tree.md)
1010
* [二叉树的遍历](thinkings/binary-tree-traversal.md)
1111
* [动态规划](thinkings/dynamic-programming.md)
1212
* [哈夫曼编码和游程编码](thinkings/run-length-encode-and-huffman-encode.md)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"scripts": {
3-
"book": "gitbook epub . && gitbook pdf . && gitbook mobi . && gitbook build && zip book.zip –r _book"
3+
"book": "gitbook epub . && gitbook pdf . && gitbook mobi . "
44
}
55
}

problems/66.plus-one.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ class Solution {
179179

180180
**复杂度分析**
181181

182-
- 时间复杂度:$O(N)$
183-
- 空间复杂度:$O(1)$
182+
- 时间复杂度:O(N)
183+
- 空间复杂度:O(1)
184184

185185
## 相关题目
186186

problems/75.sort-colors.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ https://leetcode-cn.com/problems/sort-colors/
4747

4848
这种思路的时间复杂度:$O(n)$,需要遍历数组两次(Two pass)。
4949

50-
![image](https://user-images.githubusercontent.com/12479470/83542989-4ef55100-a52e-11ea-9a49-a0e9443da5f4.png)
50+
![image](https://tva1.sinaimg.cn/large/0081Kckwly1gl0hievmxyj30kl0c1t9m.jpg)
5151

5252
## 解法二 - 挡板法
5353

@@ -57,27 +57,27 @@ https://leetcode-cn.com/problems/sort-colors/
5757

5858
形象地来说地话就是有两个挡板,这两个挡板实现我们不知道,我们的目标就是移动挡板到合适位置,并且使得挡板每一部分都是合适的颜色。
5959

60-
![image](https://user-images.githubusercontent.com/12479470/83542469-9a5b2f80-a52d-11ea-990d-1b56623ba2c8.png)
60+
![image](https://tva1.sinaimg.cn/large/0081Kckwly1gl0hihivldj31660u0wnb.jpg)
6161

6262
还是以题目给的样例来说,初始化挡板位置为最左侧和最右侧:
6363

64-
![image](https://user-images.githubusercontent.com/12479470/83542548-b19a1d00-a52d-11ea-92aa-c2458d7fe178.png)
64+
![image](https://tva1.sinaimg.cn/large/0081Kckwly1gl0hijbh5nj31h80h475x.jpg)
6565

6666
读取第一个元素是 2,它应该在右边,那么我们移动右边地挡板。
6767

68-
![image](https://user-images.githubusercontent.com/12479470/83542598-c5de1a00-a52d-11ea-9095-c66e1ed20c8f.png)
68+
![image](https://tva1.sinaimg.cn/large/0081Kckwly1gl0hikpnjhj31s80j4421.jpg)
6969

7070
> 带有背景色的圆圈 1 是第一步的意思。
7171
7272
并将其和移动挡板后挡板右侧地元素进行一次交换,这意味着“被移动挡板右侧地元素已就位”。
7373

74-
![image](https://user-images.githubusercontent.com/12479470/83542711-e9a16000-a52d-11ea-9226-5a385c26174c.png)
74+
![image](https://tva1.sinaimg.cn/large/0081Kckwly1gl0himlg5zj31iu0j8mz8.jpg)
7575

7676
。。。
7777

7878
整个过程大概是这样的:
7979

80-
![](https://tva1.sinaimg.cn/large/007S8ZIlly1ggssusgyj7j310m0l2td1.jpg)
80+
![](https://tva1.sinaimg.cn/large/0081Kckwly1gl0himzyeaj310m0l2wfs.jpg)
8181

8282
这种思路的时间复杂度也是$O(n)$, 只需要遍历数组一次。
8383

@@ -144,4 +144,4 @@ class Solution:
144144

145145
大家对此有何看法,欢迎给我留言,我有时间都会一一查看回答。更多算法套路可以访问我的 LeetCode 题解仓库:https://github.com/azl397985856/leetcode 。 目前已经 37K star 啦。
146146
大家也可以关注我的公众号《力扣加加》带你啃下算法这块硬骨头。
147-
![](https://tva1.sinaimg.cn/large/007S8ZIlly1gfcuzagjalj30p00dwabs.jpg)
147+
![](https://tva1.sinaimg.cn/large/0081Kckwly1gl0hinyr5cj30p00dwt9t.jpg)

0 commit comments

Comments
 (0)