add new solutions
This commit is contained in:
parent
ca24d0a56a
commit
0c73608ce5
36 changed files with 791 additions and 0 deletions
13
solutions/31/q3190/solution.go
Normal file
13
solutions/31/q3190/solution.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package q3190
|
||||
|
||||
func minimumOperations(nums []int) int {
|
||||
nOps := 0
|
||||
for _, num := range nums {
|
||||
if num%3 != 0 {
|
||||
nOps++
|
||||
}
|
||||
}
|
||||
return nOps
|
||||
}
|
||||
|
||||
var _ = minimumOperations
|
||||
Loading…
Add table
Add a link
Reference in a new issue