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.
18 lines
260 B
18 lines
260 B
7 months ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"piscine"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
input1 := []int{2, 3, 1, 1, 4}
|
||
|
fmt.Println(piscine.CanJump(input1))
|
||
|
|
||
|
input2 := []int{3, 2, 1, 0, 4}
|
||
|
fmt.Println(piscine.CanJump(input2))
|
||
|
|
||
|
input3 := []int{0}
|
||
|
fmt.Println(piscine.CanJump(input3))
|
||
|
}
|