public/subjects/canjump/main.go

18 lines
263 B
Go
Raw Normal View History

2024-04-22 17:45:07 +00:00
package main
import (
"fmt"
"piscine"
)
func main() {
2024-05-06 17:23:41 +00:00
input1 := []uint{2, 3, 1, 1, 4}
2024-04-22 17:45:07 +00:00
fmt.Println(piscine.CanJump(input1))
2024-05-06 17:23:41 +00:00
input2 := []uint{3, 2, 1, 0, 4}
2024-04-22 17:45:07 +00:00
fmt.Println(piscine.CanJump(input2))
2024-05-06 17:23:41 +00:00
input3 := []uint{0}
2024-04-22 17:45:07 +00:00
fmt.Println(piscine.CanJump(input3))
}