Skip to content

Commit bff75b1

Browse files
author
lucifer
committed
feat: 电子书
1 parent 3a0b5d1 commit bff75b1

File tree

147 files changed

+1100
-1120
lines changed

Some content is hidden

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

147 files changed

+1100
-1120
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
.DS_Store
22
_book/
33
.idea/*
4-
node_modules/
4+
node_modules/
5+
book.pdf
6+
book.mobi
7+
book.epub
8+
book.zip

README.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,36 @@
2626

2727
![](https://tva1.sinaimg.cn/large/007S8ZIlly1ghluemaoj3j30z90dtmy5.jpg)
2828

29-
## 项目预览
29+
## 电子书
3030

31-
![project-overview](https://github.com/azl397985856/leetcode/blob/master/Kapture%202020-08-19%20at%2011.37.36.gif)
31+
这是我将我的所有公开的算法资料整理的一个电子书,全部题目信息中文化,以前会有一些英文描述。
3232

33-
可以清晰地看出仓库组织关系。
33+
![](https://cdn.jsdelivr.net/gh/azl397985856/cdn/2020-10-17/1602928846461-image.png)
3434

35-
(你可以下载本仓库 和 obsidian 软件,然后用 obsidian 打开获得更好的阅读效果)
35+
36+
![](https://cdn.jsdelivr.net/gh/azl397985856/cdn/2020-10-17/1602928862442-image.png)
37+
38+
我写这本电子书花费了大量的时间和精力,除了内容上的创作,还要做一些电子书的排版,以让大家获得更好的阅读体验。光数学公式的展示,我就研究了多个插件的要源码,并魔改了一下才使得导出的电子书支持 latex。 不过有些动图,在做成电子书的时候自然就变没了,如果需要看动图的, 可以去我的公众号《力扣加加》或者我的 leetcode 题解仓库看。
39+
40+
由于是电子书,因此阅读体验可能比 Github 更好, 但是相应地就不能获得及时的更新,因此你可以收藏一下我的同步电子书的网站 [西法的刷题秘籍 - 在线版](https://leetcode-solution-leetcode-pp.gitbook.io/leetcode-solution/)。后期可能将每日一题, 91 天学算法其他章节的讲义等也整理进来。
41+
42+
电子书有更新我也会在公众号《力扣加加》进行通知, 感兴趣的同学可以关注一下。
43+
44+
目前导出了四种格式,可惜的是这几种格式都有自己的不足:
45+
46+
- 在线版。 实时更新,想要及时获取最新信息的可以用在线版。
47+
- html。 方便大家在线观看,由于是 html ,实际上大家也可以保存起来**离线**观看。
48+
- pdf。可使用 pdf 阅读器和浏览器(比如谷歌)直接观看,阅读体验一般。
49+
- mobi。 下载一个 Kindle 客户端就可以看,不需要购买 Kindle。
50+
- epub。 数学公式和主题都比较不错, 但是代码没有高亮。
51+
52+
大家选择适合自己的格式下载即可。
53+
54+
- [在线版](https://leetcode-solution-leetcode-pp.gitbook.io/leetcode-solution/)
55+
- [html](./assets/book.zip)
56+
- [pdf](./book.pdf)
57+
- [mobi](./book.mobi)
58+
- [epub](./book.epub)
3659

3760
## 介绍
3861

@@ -167,7 +190,7 @@ leetcode 题解,记录自己的 leetcode 解题之路。
167190
- [《构造二叉树》专题](./selected/construct-binary-tree.md)
168191
- [字典序列删除](./selected/a-deleted.md)
169192
- [百度的算法面试题 - 祖玛游戏](./selected/zuma-game.md)
170-
- [西法带你学算法】一次搞定前缀和](./selected/atMostK.md)
193+
- [西法的刷题秘籍】一次搞定前缀和](./selected/atMostK.md)
171194
- [字节跳动的算法面试题是什么难度?](./selected/byte-dance-algo-ex.md)
172195
- [字节跳动的算法面试题是什么难度?(第二弹)](./selected/byte-dance-algo-ex-2017.md)
173196
- [《我是你的妈妈呀》 - 第一期](./selected/mother-01.md)

SUMMARY.md

Lines changed: 213 additions & 214 deletions
Large diffs are not rendered by default.

book.epub

-19.4 MB
Binary file not shown.

book.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"structure": {
33
"readme": "introduction.md"
44
},
5-
"language": "zh-hans"
6-
5+
"language": "zh-hans",
6+
"plugins": ["katex", "ace", "theme-api"],
7+
"pluginsConfig": {
8+
"theme-api": {
9+
"theme": "dark"
10+
}
11+
}
712
}

book.mobi

-23.1 MB
Binary file not shown.

book.pdf

-48.2 MB
Binary file not shown.

collections/easy.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 简单难度题目合集
2+
3+
这里的题目难度比较小, 大多是模拟题,或者是很容易看出解法的题目,另外简单题目一般使用暴力法都是可以解决的。 这个时候只有看一下数据范围,思考下你的算法复杂度就行了。
4+
5+
当然也不排除很多 hard 题目也可以暴力模拟,大家平时多注意数据范围即可。
6+
17
- [面试题 17.12. BiNode](../problems/binode-lcci.md) 🆕
28

39
- [0001.two-sum](https://github.com/azl397985856/leetcode/blob/master/problems/1.two-sum.md)

collections/hard.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# 困难难度题目合集
2+
3+
困难难度题目从类型上说多是:
4+
5+
-
6+
- 设计题
7+
- 游戏场景题目
8+
- 中等题目的 follow up
9+
10+
从解法上来说,多是:
11+
12+
- 图算法
13+
- 动态规划
14+
- 二分法
15+
- DFS & BFS
16+
- 状态压缩
17+
- 剪枝
18+
19+
从逻辑上说, 要么就是非常难想到,要么就是非常难写代码。 这里我总结了几个技巧:
20+
21+
1. 看题目的数据范围, 看能否暴力模拟
22+
2. 暴力枚举所有可能的算法往上套
23+
3. 总结和记忆解题模板,减少解题压力
24+
125
- [0004.median-of-two-sorted-array](../problems/4.median-of-two-sorted-arrays.md)
226
- [0023.merge-k-sorted-lists](../problems/23.merge-k-sorted-lists.md)
327
- [0025.reverse-nodes-in-k-group](../problems/25.reverse-nodes-in-k-groups-cn.md)

collections/medium.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 中等难度题目合集
2+
3+
中等题目是力扣比例最大的部分,因此这部分我的题解也是最多的。 大家不要太过追求难题,先把中等难度题目做熟了再说。
4+
5+
这部分的题目要不需要我们挖掘题目的内含信息, 将其抽象成简单题目。 要么是一些写起来比较麻烦的题目, 一些人编码能力不行就挂了。因此大家一定要自己做, 即使看了题解”会了“,也要自己码一遍。自己不亲自写一遍,里面的细节永远不知道。
6+
17
- [面试题 17.09. 第 k 个数](../problems/get-kth-magic-number-lcci.md)
28

39
- [0002.add-two-numbers](../problems/2.add-two-numbers.md)
@@ -26,7 +32,7 @@
2632
- [0073.set-matrix-zeroes](../problems/73.set-matrix-zeroes.md)
2733
- [0075.sort-colors](../problems/75.sort-colors.md)
2834
- [0078.subsets](../problems/78.subsets.md)
29-
- [0079.word-search](../problems/79.word-search-en.md)
35+
- [0079.word-search](../problems/79.word-search.md)
3036
- [0080.remove-duplicates-from-sorted-array-ii](../problems/80.remove-duplicates-from-sorted-array-ii.md) 🆕
3137
- [0086.partition-list](../problems/86.partition-list.md)
3238
- [0090.subsets-ii](../problems/90.subsets-ii.md)

0 commit comments

Comments
 (0)