Updated: 2024-03-12
1 min read

On This Page

class Solution:
    def returnToBoundaryCount(self, nums: List[int]) -> int:
        return sum(s == 0 for s in accumulate(nums))
Previous
Next