mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
207 B
17 lines
207 B
1 year ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
a1 := []int{0, 1, 2, 3, 4, 5}
|
||
|
a2 := []int{0, 2, 1, 3}
|
||
|
|
||
|
result1 := IsSorted(f, a1)
|
||
|
result2 := IsSorted(f, a2)
|
||
|
|
||
|
fmt.Println(result1)
|
||
|
fmt.Println(result2)
|
||
|
}
|