Minimum Operations to Make Array Sum Divisible by K - Leetcode 3512 - Python
NeetCodeIO · 2:03
The answer to "Minimum Operations to Make Array Sum Divisible by K" is just sum(nums) % k. You can only decrement elements one at a time, so all that matters is the array's total, and the cheapest fix is to lower it t...