python实现 最长子序列和

一、O(n^2)python def maxSubSum(*a): #a is a List max=a[0] for i,value in enumerate(a): this_max=0 for j in a[i:]: this_max+=j if this_max>max:
相关文章
相关标签/搜索