@@ -32,7 +32,7 @@ class Solution:
32
32
for j in range(i + 1, n):
33
33
# do something
34
34
return dp[0][m-1] # 一般都是使用这个��间作为答案
35
- `
35
+ ` ;
36
36
const dpRangeCodeRecur = `
37
37
class Solution:
38
38
def solve(self, s):
@@ -44,7 +44,7 @@ class Solution:
44
44
return helper(l + 1, r - 1)
45
45
return 1 + min(helper(l + 1, r), helper(l, r - 1))
46
46
return helper(0, len(s) - 1)
47
- `
47
+ ` ;
48
48
49
49
const roadmaps = {
50
50
"binary-search" : {
@@ -418,9 +418,15 @@ def count_bs(nums, k):
418
418
link :
419
419
"https://github.com/azl397985856/leetcode/blob/master/problems/1015.smallest-integer-divisible-by-k.md" ,
420
420
} ,
421
+ {
422
+ text : "递增的数位" ,
423
+ link : "https://binarysearch.com/problems/Increasing-Digits" ,
424
+ } ,
421
425
] ,
422
426
code : void 0 ,
423
- keys : [ ] ,
427
+ keys : [
428
+ "常见的 dp 定义为 dp[i][j] 其中 i 为数字的长度, j 为最后一位的数。比如 dp[3][2] 表示这个数一共三位,最后一位是 2 的情况" ,
429
+ ] ,
424
430
} ,
425
431
{
426
432
title : "概率型(仅列举题目)" ,
@@ -486,7 +492,8 @@ def count_bs(nums, k):
486
492
// "https://tva1.sinaimg.cn/large/0081Kckwly1glpjptuor0j31n00u0q8y.jpg",
487
493
problems : [
488
494
{
489
- link : "https://binarysearch.com/problems/Make-a-Palindrome-by-Inserting-Characters" ,
495
+ link :
496
+ "https://binarysearch.com/problems/Make-a-Palindrome-by-Inserting-Characters" ,
490
497
text : "回文插入" ,
491
498
desc :
492
499
"区间 dp 需要从序列两头同时进行,而不是从序列的某一端到另一端" ,
0 commit comments