Skip to content

Commit a5607e4

Browse files
committed
Time: 0 ms (100%), Space: 17.9 MB (40.51%) - LeetHub
1 parent 3cea137 commit a5607e4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from typing import List
2+
3+
4+
class Solution:
5+
def minimumOperations(self, nums: List[int]) -> int:
6+
count = 0
7+
for num in nums:
8+
if num % 3:
9+
count += 1
10+
return count
11+
12+
13+
nums = [1, 2, 3, 4]
14+
print(Solution().minimumOperations(nums))
15+
nums = [3, 6, 9]
16+
print(Solution().minimumOperations(nums))

0 commit comments

Comments
 (0)