You are given an integer array nums and an integer k.
In one operation, you can select any element in nums and decrease its value by
Return the minimum number of operations needed to make the sum of all elements in nums divisible by k.
Constraints:
nums.length
nums[i]
k
You are given an integer array nums and an integer k.
In one operation, you can select any element in nums and decrease its value by
Return the minimum number of operations needed to make the sum of all elements in nums divisible by k.
Constraints:
nums.length
nums[i]
k