Skip to content

Commit bf50226

Browse files
authored
Create 3190. Find Minimum Operations to Make All Elements Divisible b… (#938)
2 parents 6b75ef3 + 492d101 commit bf50226

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Solution {
2+
public:
3+
int minimumOperations(vector<int>& nums) {
4+
int operations = 0;
5+
for(int x : nums){
6+
if(x % 3 != 0) operations++;
7+
}
8+
return operations;
9+
}
10+
};

0 commit comments

Comments
 (0)