All prompts are owned by LeetCode. To view the prompt, click the title link above.
First completed : June 22, 2024
Last updated : June 22, 2024
Acceptance Rate : 89.11 %
class Solution {
public int minimumOperations(int[] nums) {
int turns = 0;
for (int num : nums) {
if (num % 3 != 0) {
turns += 1;
}
}
return turns;
}
}