Maximum subarray problem: Difference between revisions

Content deleted Content added
Tag: Reverted
No edit summary
Line 81:
def max_subarray(numbers):
"""Find the largest sum of any contiguous subarray."""
if not numbers == []:
raise ValueError('Empty array has no nonempty subarrays')