d10

Imports

Imports #

"bufio"
"fmt"
"io"
"log"
"strconv"
"advent2024/pkg/solver"
"advent2024/pkg/solver"
"context"
"fmt"
"io"
"strconv"
"time"

Constants & Variables

day var #

var day = "d10"

Structs

PuzzleStruct struct #

type PuzzleStruct struct {
input string
}

PuzzleStructWithCtx struct #

type PuzzleStructWithCtx struct {
PuzzleStruct
}

Functions

Init method #

func (p *PuzzleStruct) Init(reader io.Reader) error

InitCtx method #

func (p *PuzzleStructWithCtx) InitCtx(ctx context.Context, reader io.Reader) error

NewSolver function #

func NewSolver() *PuzzleStruct

NewSolverWithCtx function #

func NewSolverWithCtx() *PuzzleStructWithCtx

Solve method #

func (p *PuzzleStruct) Solve(part int) (string, error)

SolveCtx method #

func (p *PuzzleStructWithCtx) SolveCtx(ctx context.Context, part int) (string, error)

init function #

func init()

init function #

func init()

parseInput function #

func parseInput(sc *bufio.Scanner) (string, error)

validateInput function #

func validateInput(entry string) error