更新图片链接

This commit is contained in:
kama
2025-05-19 17:11:04 +08:00
parent b489cb69b5
commit ce6e658d14
315 changed files with 2499 additions and 1729 deletions

View File

@@ -15,7 +15,7 @@
如图:
![122.买卖股票的最佳时机II](https://file.kamacoder.com/pics/2020112917480858.png)
![122.买卖股票的最佳时机II](https://file1.kamacoder.com/i/algo/2020112917480858.png)
## 周二
@@ -31,7 +31,7 @@
如图:
![55.跳跃游戏](https://file.kamacoder.com/pics/20201124154758229.png)
![55.跳跃游戏](https://file1.kamacoder.com/i/algo/20201124154758229.png)
## 周三
@@ -44,7 +44,7 @@
如图:
![45.跳跃游戏II](https://file.kamacoder.com/pics/20201201232309103-20230310133110942.png)
![45.跳跃游戏II](https://file1.kamacoder.com/i/algo/20201201232309103-20230310133110942.png)
注意:**图中的移动下标是到当前这步覆盖的最远距离下标2的位置此时没有到终点只能增加第二步来扩大覆盖范围**。
@@ -55,10 +55,10 @@
而版本二就比较统一的,超过范围,步数就加一,但在移动下标的范围了做了文章。
即如果覆盖最远距离下标是倒数第二点:直接加一就行,默认一定可以到终点。如图:
![45.跳跃游戏II2](https://file.kamacoder.com/pics/20201201232445286-20230310133115650.png)
![45.跳跃游戏II2](https://file1.kamacoder.com/i/algo/20201201232445286-20230310133115650.png)
如果覆盖最远距离下标不是倒数第二点,说明本次覆盖已经到终点了。如图:
![45.跳跃游戏II1](https://file.kamacoder.com/pics/20201201232338693-20230310133120115.png)
![45.跳跃游戏II1](https://file1.kamacoder.com/i/algo/20201201232338693-20230310133120115.png)
有的录友认为版本一好理解,有的录友认为版本二好理解,其实掌握一种就可以了,也不用非要比拼一下代码的简洁性,简洁程度都差不多了。
@@ -92,4 +92,4 @@
<div align="center"><img src=https://code-thinking.cdn.bcebos.com/pics/01二维码.jpg width=450> </img></div>
<div align="center"><img src='https://file1.kamacoder.com/i/algo/01二维码.jpg' width=450> </img></div>