Skip to content

Commit d895f9e

Browse files
committed
update cdn
1 parent 5ea7b09 commit d895f9e

7 files changed

Lines changed: 18 additions & 18 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 算法模板
22

3-
![来刷题了](https://img.fuiboom.com/img/title.png)
3+
![来刷题了](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/title.png)
44

55
算法模板,最科学的刷题方式,最快速的刷题路径,一个月从入门到 offer,你值得拥有 🐶~
66

@@ -49,9 +49,9 @@
4949

5050
从 4 月份找工作开始,从 0 开始刷 LeetCode,中间大概花了一个半月(6 周)左右时间刷完 240 题。
5151

52-
![一个半月刷完240题](https://img.fuiboom.com/img/leetcode_time.png)
52+
![一个半月刷完240题](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/leetcode_time.png)
5353

54-
![刷题记录](https://img.fuiboom.com/img/leetcode_record.png)
54+
![刷题记录](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/leetcode_record.png)
5555

5656
开始刷题时,确实是无从下手,因为从序号开始刷,刷到几道题就遇到 hard 的题型,会卡住很久,后面去评论区看别人怎么刷题,也去 Google 搜索最好的刷题方式,发现按题型刷题会舒服很多,基本一个类型的题目,一天能做很多,慢慢刷题也不再枯燥,做起来也很有意思,最后也收到不错的 offer(最后去了宇宙系)。
5757

@@ -65,15 +65,15 @@
6565

6666
1、 [algorithm-pattern 练习题](https://greyireland.gitbook.io/algorithm-pattern/)
6767

68-
![练习题](https://img.fuiboom.com/img/repo_practice.png)
68+
![练习题](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/repo_practice.png)
6969

7070
2、 [LeetCode 卡片](https://leetcode-cn.com/explore/)
7171

72-
![探索卡片](https://img.fuiboom.com/img/leetcode_explore.png)
72+
![探索卡片](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/leetcode_explore.png)
7373

7474
3、 [剑指 offer](https://leetcode-cn.com/problemset/lcof/)
7575

76-
![剑指offer](https://img.fuiboom.com/img/leetcode_jzoffer.png)
76+
![剑指offer](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/leetcode_jzoffer.png)
7777

7878
刷题时间可以合理分配,如果打算准备面试了,建议前面两部分 一个半月 (6 周)时间刷完,最后剑指 offer 半个月刷完,边刷可以边投简历进行面试,遇到不会的不用着急,往模板上套就对了,如果面试管给你提示,那就好好做,不要错过这大好机会~
7979

advanced_algorithm/backtrack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func backtrack(选择列表,路径):
2828
2929
遍历过程
3030

31-
![image.png](https://img.fuiboom.com/img/backtrack.png)
31+
![image.png](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/backtrack.png)
3232

3333
```go
3434
func subsets(nums []int) [][]int {

basic_algorithm/binary_search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func search(nums []int, target int) int {
5252

5353
另外二分查找还有一些其他模板如下图,大部分场景模板#3 都能解决问题,而且还能找第一次/最后一次出现的位置,应用更加广泛
5454

55-
![binary_search_template](https://img.fuiboom.com/img/binary_search_template.png)
55+
![binary_search_template](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/binary_search_template.png)
5656

5757
所以用模板#3 就对了,详细的对比可以这边文章介绍:[二分搜索模板](https://leetcode-cn.com/explore/learn/card/binary-search/212/template-analysis/847/)
5858

basic_algorithm/dp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525

2626
遍历
2727

28-
![image.png](https://img.fuiboom.com/img/dp_triangle.png)
28+
![image.png](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/dp_triangle.png)
2929

3030
分治法
3131

32-
![image.png](https://img.fuiboom.com/img/dp_dc.png)
32+
![image.png](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/dp_dc.png)
3333

3434
优化 DFS,缓存已经被计算的值(称为:记忆化搜索 本质上:动态规划)
3535

36-
![image.png](https://img.fuiboom.com/img/dp_memory_search.png)
36+
![image.png](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/dp_memory_search.png)
3737

3838
动态规划就是把大问题变成小问题,并解决了小问题重复计算的方法称为动态规划
3939

basic_algorithm/sort.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ func merge(left, right []int) (result []int) {
9191

9292
> 完美二叉树 VS 其他二叉树
9393
94-
![image.png](https://img.fuiboom.com/img/tree_type.png)
94+
![image.png](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/tree_type.png)
9595

9696
[动画展示](https://www.bilibili.com/video/av18980178/)
9797

98-
![image.png](https://img.fuiboom.com/img/heap.png)
98+
![image.png](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/heap.png)
9999

100100
核心代码
101101

data_structure/linked_list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func reverseList(head *ListNode) *ListNode {
368368
> 给定一个链表,判断链表中是否有环。
369369
370370
思路:快慢指针,快慢指针相同则有环,证明:如果有环每走一步快慢指针距离会减 1
371-
![fast_slow_linked_list](https://img.fuiboom.com/img/fast_slow_linked_list.png)
371+
![fast_slow_linked_list](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/fast_slow_linked_list.png)
372372

373373
```go
374374
func hasCycle(head *ListNode) bool {
@@ -395,7 +395,7 @@ func hasCycle(head *ListNode) bool {
395395
> 给定一个链表,返回链表开始入环的第一个节点。  如果链表无环,则返回  `null`
396396
397397
思路:快慢指针,快慢相遇之后,慢指针回到头,快慢指针步调一致一起移动,相遇点即为入环点
398-
![cycled_linked_list](https://img.fuiboom.com/img/cycled_linked_list.png)
398+
![cycled_linked_list](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/cycled_linked_list.png)
399399

400400
```go
401401
func detectCycle(head *ListNode) *ListNode {

data_structure/stack_queue.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
栈的特点是后入先出
66

7-
![image.png](https://img.fuiboom.com/img/stack.png)
7+
![image.png](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/stack.png)
88

99
根据这个特点可以临时保存一些数据,之后用到依次再弹出来,常用于 DFS 深度搜索
1010

@@ -297,11 +297,11 @@ func dfs(grid [][]byte,i,j int)int{
297297
298298
思路:求以当前柱子为高度的面积,即转化为寻找小于当前值的左右两边值
299299

300-
![image.png](https://img.fuiboom.com/img/stack_rain.png)
300+
![image.png](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/stack_rain.png)
301301

302302
用栈保存小于当前值的左的元素
303303

304-
![image.png](https://img.fuiboom.com/img/stack_rain2.png)
304+
![image.png](https://cdn.jsdelivr.net/gh/greyireland/algorithm-pattern@master/images/stack_rain2.png)
305305

306306
```go
307307
func largestRectangleArea(heights []int) int {

0 commit comments

Comments
 (0)