摘要: 题目: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume that nums1 has eno... 阅读全文
posted @ 2017-03-03 20:31 StevenLuke 阅读(126) 评论(0) 推荐(0)
摘要: 求总和最大的子数组。 动态规划dp。 Suppose we’ve solved the problem for A[1 .. i - 1]; how can we extend that to A[1 .. i]? The maximum sum in the first I el... 阅读全文
posted @ 2017-03-03 19:59 StevenLuke 阅读(125) 评论(0) 推荐(0)