https://leetcode-cn.com/problems/lian-xu-zi-shu-zu-de-zui-da-he-lcof/submissions/
连续子数组的最大和,典型的动态规划问题
说白了就是重复利用结果,将大问题拆成小问题
dp[i] = max(dp[i-1] + nums[i], nums[i])