Minimum Operations to Make Array Sum Divisible by K
You are given an integer array `nums` and an integer `k`. In one operation you may pick any index `i` and replace `nums[i]` with `nums[i] - 1`.
Return the **minimum** number of operations needed to make the sum of the array divisible by `k`.
30:00
Minimum Operations to Make Array Sum Divisible by K