#prefix-sum
Read more stories on Hashnode
Articles with this tag
class Solution: def subarraysDivByK(self, nums: List[int], k: int) -> int: prefixSum = 0 ans = 0 reminders = {} ...