137

漫画:什么是动态规划?

 6 years ago
source link: https://juejin.im/post/5a29d52cf265da43333e4da7
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
​————————————题目:有一座高度是10级台阶的楼梯,从下往上走,每跨一步只能向上1级或者2级台阶。要求用程序来求出一共有多少种走法。比如,每次走1级台阶,一共走10步,这是其中一种走法。我们可以简写成 1,1,1,1,1,1,1,1,1,1。再比如,

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK