摘要: 在学习动态规划前 , 先补充些有关递归的知识 。 所谓的递归函数 就是调用自身函数的过程 ,因此是用栈来存储的 。 递归函数的最终返回值 就是第一次调用函数的返回值 。 在写函数递归时 , 要特别注意的两点 : 一是 递归 递归 , 一定有让它有能让他回归的条件 。 二是 写递归时 , 要找到一个最 阅读全文
posted @ 2017-08-09 19:17 楼主好菜啊 阅读(260) 评论(0) 推荐(0) 编辑
摘要: Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the 阅读全文
posted @ 2017-08-09 00:39 楼主好菜啊 阅读(326) 评论(0) 推荐(0) 编辑