Imports #
"advent2024/pkg/solver"
"fmt"
"io"
"log"
"regexp"
"strconv"
"advent2024/pkg/solver"
"context"
"fmt"
"io"
"strconv"
"advent2024/pkg/solver"
"fmt"
"io"
"log"
"regexp"
"strconv"
"advent2024/pkg/solver"
"context"
"fmt"
"io"
"strconv"
var day = "d3"
type PuzzleStruct struct {
entries *[]puzzleEntry
}
type PuzzleStructWithCtx struct {
PuzzleStruct
}
type puzzleEntry struct {
instruction string
i int
j int
}
func (p *PuzzleStruct) Init(reader io.Reader) error
func (p *PuzzleStructWithCtx) InitCtx(ctx context.Context, reader io.Reader) error
func NewSolver() *PuzzleStruct
func NewSolverWithCtx() *PuzzleStructWithCtx
func (p *PuzzleStruct) Solve(part int) (string, error)
func (p *PuzzleStructWithCtx) SolveCtx(ctx context.Context, part int) (string, error)
func init()
func init()
func parseInput(s string) *[]puzzleEntry
func validateInput(entries *[]puzzleEntry) error