WEB开发网
开发学院软件开发Java 求数组中连续n个元素使其和最大 阅读

求数组中连续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 

上一页  1 2 

Tags:数组 连续 元素

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接