摘要:
给定一个整数数组,找到一个具有最大和的子数组,返回其最大和。 思路一要点:1:设置结果result的初始值为无穷小Integer.MIN_VALUE; 2:只需要一层循环就能完成任务 public class Solution { /* * @param nums: A list of intege 阅读全文
posted @ 2018-01-22 21:45
做个快乐的自己
阅读(157)
评论(0)
推荐(0)


浙公网安备 33010602011771号