摘要: 作者:Hawstein出处:http://hawstein.com/posts/dp-novice-to-advanced.html声明:本文采用以下协议进行授权:自由转载-非商用-非衍生-保持署名|Creative Commons BY-NC-ND 3.0,转载请注明作者及出处。前言本文翻译自To... 阅读全文
posted @ 2015-03-04 16:49 choles 阅读(191) 评论(0) 推荐(0) 编辑
摘要: DP类题目找到子问题(状态),然后找到转移方程,就OK#dp#likes matrixchain#according to two point's distance to recurrenceclass Solution: # @return a string def longest... 阅读全文
posted @ 2015-03-04 16:42 choles 阅读(192) 评论(0) 推荐(0) 编辑