solver

package
v0.0.0-...-dc3ba52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InputFromFile

func InputFromFile(name string) string

func InputFromPath

func InputFromPath(name string) (string, error)

func SolveFromFile

func SolveFromFile(f *os.File, s1 Solver, s2 Solver) (string, string, error)

Types

type Solver

type Solver func(input string) (string, error)

type TestCase

type TestCase struct {
	Short   bool
	Input   string
	Solvers []*TestCaseSolver
}

func (*TestCase) Benchmark

func (tc *TestCase) Benchmark(b *testing.B)

func (*TestCase) Test

func (tc *TestCase) Test(t *testing.T)

type TestCaseSolver

type TestCaseSolver struct {
	Solver Solver
	Output string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL