26 lines
465 B
Go
26 lines
465 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"sunshine.industries/aoc2023/day9"
|
|
)
|
|
|
|
func main() {
|
|
log.Print("> starting run:")
|
|
|
|
// line := "0 3 6 9 12 15"
|
|
// line := "1 3 6 10 15 21"
|
|
// line := "10 13 16 21 30 45"
|
|
// seq := day9.CreateSequence(line)
|
|
// fmt.Println(seq.String())
|
|
|
|
// fmt.Printf("got %+v \n", seq)
|
|
// fmt.Printf("%s\n", seq.String())
|
|
|
|
// fmt.Printf("next value is %d\n", seq.Next())
|
|
|
|
result := day9.Run()
|
|
log.Printf("day9 result: %d\n****\n", result)
|
|
}
|