File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ leetcode 题解,记录自己的 leetcode 解题之路。
136
136
- [ 数据结构] ( ./thinkings/basic-data-structure.md )
137
137
- [ 基础算法] ( ./thinkings/basic-algorithm.md )
138
138
- [ 二叉树的遍历] ( ./thinkings/binary-tree-traversal.md ) 🖊
139
- - [ 动态规划] ( ./thinkings/dynamic-programming.md )
139
+ - [ 动态规划] ( ./thinkings/dynamic-programming.md ) 🖊
140
140
- [ 哈夫曼编码和游程编码] ( ./thinkings/run-length-encode-and-huffman-encode.md )
141
141
- [ 布隆过滤器] ( ./thinkings/bloom-filter.md )
142
142
- [ 字符串问题] ( ./thinkings/string-problems.md )
Original file line number Diff line number Diff line change @@ -92,6 +92,8 @@ function sum(nums) {
92
92
93
93
一个人爬楼梯,每次只能爬 1 个或 2 个台阶,假设有 n 个台阶,那么这个人有多少种不同的爬楼梯方法?
94
94
95
+ > [ 746. 使用最小花费爬楼梯] ( https://leetcode-cn.com/problems/min-cost-climbing-stairs/ ) 是这道题的换皮题, GrowingIO 前端工程师岗位考察过这个题目。
96
+
95
97
由于上第 n 级台阶一定是从 n - 1 或者 n - 2 来的,因此 上第 n 级台阶的数目就是 ` 上 n - 1 级台阶的数目加上 n - 1 级台阶的数目 ` 。
96
98
97
99
递归代码:
Original file line number Diff line number Diff line change 26
26
- [ 0472.concatenated-words] ( https://github.com/azl397985856/leetcode/blob/master/problems/472.concatenated-words.md )
27
27
- [ 0820.short-encoding-of-words] ( https://github.com/azl397985856/leetcode/blob/master/problems/820.short-encoding-of-words.md )
28
28
- [ 1032.stream-of-characters] ( ../problems/1032.stream-of-characters.md )
29
+
30
+ ## 相关题目
31
+
32
+ - [ 648. 单词替换] ( https://leetcode-cn.com/problems/replace-words/ ) (换皮题)
You can’t perform that action at this time.
0 commit comments