【leetcode-python-14】面试题 16.17. 连续数列 渣渣原始版(70.23%) 参考大佬版(70.23%) leetcode 面试题 16.17. 连续数列 渣渣原始版(70.23%) 以下两者在<0算max不同。均为70.23%。 class Solution(object): def maxSubArray(self, nums): """ :type nums: List[int] :rtype: int """ for i in nums: if i >= 0: break else: return max(nums