updated bookmarks in chrome

This commit is contained in:
a.pivkin 2025-09-08 19:46:28 +03:00
parent c5bc4da2c3
commit d5be938936
3 changed files with 21 additions and 0 deletions

Binary file not shown.

3
codewars/go.mod Normal file
View File

@ -0,0 +1,3 @@
module main.go
go 1.24.6

18
codewars/main.go Normal file
View File

@ -0,0 +1,18 @@
package main
import (
"fmt"
"sort"
)
func ExpressionMatter(a int, b int, c int) {
// your code here
array := []int{a*(b+c),a*b*c,a+b+c,a+(b*c),(a+b)*c}
sort.Ints(array)
fmt.Println(array)
fmt.Println(array[len(array)-1])
}
func main() {
ExpressionMatter(1,2,4)
}