陈越、何钦铭 数据结构作业4:在线查找算法求最大子列和并返回最大子列和头尾元素
The Maximum Subsequence is the continuous subsequence which has the largest sum of its elements. For example, given sequence { -2, 11, -4, 13, -5, -2 }, its maximum subsequence is { 11, -4, 13 } with the largest sum being 20. Now you are supposed to find the largest sum, together with the first and
下载地址
用户评论