1. 首页
  2. 编程语言
  3. C++ 
  4. 陈越、何钦铭 数据结构作业4:在线查找算法求最大子列和并返回最大子列和头尾元素

陈越、何钦铭 数据结构作业4:在线查找算法求最大子列和并返回最大子列和头尾元素

上传者: 2020-11-29 00:52:34上传 CPP文件 1.68KB 热度 30次
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
下载地址
用户评论