求数组中连续n个元素使其和最大
2009-10-11 00:00:00 来源:WEB开发网核心提示: 输出为:Java代码Maxisfromelement2(59)toelement6(97),maxsumis187Maxisfromelement2(59)toelement6(97),maxsumis187Maxisfromelement2(59)toelement6(97),maxsumis
输出为:
Java代码
Max is from element 2(59) to element 6(97), max sum is 187
Max is from element 2(59) to element 6(97), max sum is 187
Max is from element 2(59) to element 6(97), max sum is 187
Max sum is 187
Max is from element 2(59) to element 6(97), max sum is 187
更多精彩
赞助商链接