Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Solution:
- def minStartValue(self, nums: List[int]) -> int:
- return max(1, 1 - min(accumulate(nums)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement