![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
浙大数据结构
sawdustcreep
这个作者很懒,什么都没留下…
展开
-
Maximum Subsequence Sum
01-复杂度2 Maximum Subsequence Sum Given a sequence of K integers { N1, N2, …, NK }. A continuous subsequence is defined to be { Ni, Ni+1, …, Nj } where 1≤i≤j≤K. The Maximum Subsequence is the continuous subsequence which has the largest sum原创 2020-05-23 23:57:57 · 113 阅读 · 0 评论 -
浙江大学数据结构MOOC 最大子列和问题
最大子列和问题 给定K个整数组成的序列{ N1, N2, …, NK },“连续子列”被定义为{ Ni, Ni+1, …, Nj },其中 1≤i≤j≤K。“最大子列和”则被定义为所有连续子列元素的和中最大者。例如给定序列{ -2, 11, -4, 13, -5, -2 },其连续子列{ 11, -4, 13 }有最大的和20。现要求你编写程序,计算给定整数序列的最大子列和。 本题旨在测试各种不同的算法在各种数据情况下的表现。各组测试数据特点如下: 数据1:与样例等价,测原创 2020-05-23 17:55:30 · 345 阅读 · 0 评论