algo/di-er-zhan-a01c6/dong-tai-g-a223e/dong-tai-g-2526f/ #1444
Replies: 7 comments 1 reply
-
难就难在dp的定义 |
Beta Was this translation helpful? Give feedback.
-
数学归纳法太屌了! |
Beta Was this translation helpful? Give feedback.
-
请教一下大佬,子序列问题抽象成组合问题,也就是m个不同的小球放入n个相同的盒子,每个盒子一个球,是不是更贴切一点,但是这样不知道该怎么写代码 |
Beta Was this translation helpful? Give feedback.
-
为什么都写成递归的方法呢 能变成递推版本嘛 |
Beta Was this translation helpful? Give feedback.
-
用这个去代替for循环,真的喵,喵,喵 dp(s, i + 1, t, j) |
Beta Was this translation helpful? Give feedback.
-
这个题现在过不了所有测试用例了,官方放了一个错误的case... |
Beta Was this translation helpful? Give feedback.
-
不懂这个basecase j==t.length() 为什么返回1 |
Beta Was this translation helpful? Give feedback.
-
algo/di-er-zhan-a01c6/dong-tai-g-a223e/dong-tai-g-2526f/
Info 数据结构精品课 (https://aep.h5.xeknow.com/s/1XJHEO) 和 递归算法专题课 (https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!第 21 期打卡挑战 (https://opedk.xet.tech/s/4ptSo2) 开始报名! 读完本文,你不仅学会了算法套路,还可以顺便解决如下...
https://labuladong.github.io/algo/di-er-zhan-a01c6/dong-tai-g-a223e/dong-tai-g-2526f/
Beta Was this translation helpful? Give feedback.
All reactions