摘要: 借鉴:http://www.cnblogs.com/steven_oyj/archive/2010/05/22/1741374.html 动态规划算法: 一、算法思想: 将待求解的问题分解成若干个子问题,并存储子问题的解而避免计算重复的子问题,并由子问题的解得到原问题的解。 l动态规划算法通常用于求 阅读全文
posted @ 2016-02-25 01:46 wangb021 阅读(410) 评论(0) 推荐(0) 编辑
摘要: Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space 阅读全文
posted @ 2016-02-25 01:27 wangb021 阅读(160) 评论(0) 推荐(0) 编辑