solution

package
v0.0.0-...-2562e00 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeSolutionOne

func ComputeSolutionOne(data []byte) int64

func ComputeSolutionTwo

func ComputeSolutionTwo(data []byte, swaps int) string

Types

type Gate

type Gate struct {
	Left  *Wire
	Right *Wire
	Op    string
	Out   map[string]*Wire
	Fired bool
}

func (*Gate) Fire

func (gt *Gate) Fire() []string

type Wire

type Wire struct {
	State *bool
}

Jump to

Keyboard shortcuts

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