摘要: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
posted @ 2015-04-22 12:55 Mr.do 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 转载出处:http://hawstein.com/posts/dp-novice-to-advanced.html 简介(入门) 什么是动态规划,我们要如何描述它? 动态规划算法通常基于一个递推公式及一个或多个初始状态。 当前子问题的解将由上一次子问题的解推出。使用动态规划来解题只需要多项式时间复杂 阅读全文
posted @ 2015-04-22 10:30 Mr.do 阅读(133) 评论(0) 推荐(0) 编辑