Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Solution:
- def maxSubArray(self, nums: List[int]) -> int:
- return max(itertools.accumulate(nums, lambda x, y: x+y if x > 0 else y))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement