摘要: Problem Description Today is army day, but the servicemen are busy with the phalanx for the celebration of the 60th anniversary of the PRC. A phalanx 阅读全文
posted @ 2019-08-20 17:36 杰瑞与汤姆 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 最大连续子序列和最大连续子矩阵的关系与实现 求最长连续子序列的优化方法(非DP)//求最大连续子序列和与对应的开头元素和结束元素实现代码: 例子:81 -3 -5 2 6 -1 4 920 2 9 类似的是,在矩阵中求最大子矩阵的方法可以转化成一维求最大连续子序列和的方法。 将矩阵的行或列压缩。这里 阅读全文
posted @ 2019-08-20 16:37 杰瑞与汤姆 阅读(173) 评论(0) 推荐(0) 编辑