
动态规划
tanlichun789
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
最大子数组和问题
动态规划(dynamic programing)是通过组合子问题的解而解决整个问题的。这里Programming 翻译写成规划而不是编程。维基百科上写到 This is also usually done in a tublar form by iteratively genereting solutions to bigger and bigger subprobleams by usin转载 2016-09-25 13:12:38 · 410 阅读 · 0 评论 -
97. Interleaving String
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.Example 1:Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac" Output: true Example 2:Input: s1 = "aabcc", s2 = "dbbca", s3...转载 2018-06-07 10:24:39 · 185 阅读 · 0 评论 -
115. Distinct Subsequences
转自 : https://blog.youkuaiyun.com/feliciafay/article/details/42959119Given a string S and a string T, count the number of distinct subsequences of S which equals T.A subsequence of a string is a new string ...转载 2018-06-26 15:03:39 · 219 阅读 · 0 评论