3190. Find Minimum Operations to Make All Elements Divisible by Three
You are given an integer array
nums
. In one operation, you can add or subtract 1 from any element ofnums
.Return the minimum number of operations to make all elements of
nums
divisible by 3.
1 | class Solution { |