Advertisement
kosievdmerwe

Untitled

Nov 10th, 2021
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. class Solution:
  2.     def minStartValue(self, nums: List[int]) -> int:
  3.         return max(1, 1 - min(accumulate(nums)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement