C++求最大子序列问题

 //最大子序列求解问题,并加入了一个计时器,输出的是最大子序列和,最大子序列的起始下表 #include<iostream> #include<vector> #include<time.h> using namespace std; int *maxSubSum(const vector<int> &a) {  int* ans = new int[2];  int maxSum = 0,
相关文章
相关标签/搜索