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