updated bookmarks in chrome
This commit is contained in:
parent
c5bc4da2c3
commit
d5be938936
Binary file not shown.
3
codewars/go.mod
Normal file
3
codewars/go.mod
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
module main.go
|
||||||
|
|
||||||
|
go 1.24.6
|
||||||
18
codewars/main.go
Normal file
18
codewars/main.go
Normal 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)
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user