Make Sum Divisible by P - Leetcode 1590 - Python
NeetCodeIO · 15:00
The video solves Make Sum Divisible by P: given an array and modulus P, remove the shortest contiguous subarray so the remaining sum is 0 mod P, returning that length (or 0 if already divisible, or -1 if the only opti...