day05_2018

package
v0.0.0-...-359cf57 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CAPITALIZE_DIFF = 'a' - 'A'

Variables

This section is empty.

Functions

func FullReaction

func FullReaction(polymer string) string

func ReactingPassSeveralAtOnce

func ReactingPassSeveralAtOnce(s string) (string, int, error)

Types

type Solver

type Solver struct {
	Lines []string
}

func NewSolver

func NewSolver() *Solver

func (*Solver) Part1

func (s *Solver) Part1() (string, error)

func (*Solver) Part2

func (s *Solver) Part2() (string, error)

func (*Solver) ProcessInput

func (s *Solver) ProcessInput(input string) error

type UnitSet

type UnitSet map[rune]bool

func GetLowerCaseUnitSet

func GetLowerCaseUnitSet(s string) UnitSet

func (UnitSet) Add

func (us UnitSet) Add(runes ...rune)

func (UnitSet) Contains

func (us UnitSet) Contains(r rune) bool

Jump to

Keyboard shortcuts

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