adv2022

package
v0.0.0-...-6c6fb3e Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignFuns

func AssignFuns()

func CmpItem

func CmpItem(s, t interface{}) int

func Day1

func Day1()

func Day10

func Day10()

func Day11

func Day11()

func Day12

func Day12()

func Day13

func Day13()

func Day14

func Day14()

func Day15

func Day15()

func Day15Ivs

func Day15Ivs(sensors [][2]int, dists []int, row, lwb, upb int) [][2]int

func Day15ReadInput

func Day15ReadInput(y int) ([][2]int, []int, int)

func Day16

func Day16()

func Day16Input

func Day16Input() ([]int, [][]int, []string, int)

func Day17

func Day17()

func Day18

func Day18()

func Day19

func Day19()

func Day19MaxGeodes

func Day19MaxGeodes(a [][]int, rounds int) int

func Day19ParseBlueprint

func Day19ParseBlueprint(line string) [][]int

func Day19ReadScipResults

func Day19ReadScipResults()

func Day19Scip

func Day19Scip()

Day19 Scip hack: generate LP files, run SCIP and parse results Apparently LP format is not much used anymore, but AMPL and GAMS are Google OR tools can read MPS files

func Day19TooSlow

func Day19TooSlow()

func Day19WriteLPFile

func Day19WriteLPFile(folder string, id int, minutes int, a [][]int)

func Day19WriteLPFiles

func Day19WriteLPFiles()

func Day2

func Day2()

func Day20

func Day20()

func Day21

func Day21()

func Day22

func Day22()

func Day23

func Day23()

func Day24

func Day24()

func Day25

func Day25()

func Day3

func Day3()

func Day4

func Day4()

func Day5

func Day5()

func Day6

func Day6()

func Day7

func Day7()

func Day8

func Day8()

func Day9

func Day9()

func FromSnafu

func FromSnafu(s string) int

func IntervalIntersect

func IntervalIntersect(a0, a1, b0, b1 int) (int, int)

func ListMoveCyclic

func ListMoveCyclic(l *list.List, e *list.Element, n int)

Cyclic moves of elements for advent ofcode 2022, day 20

func ListSumElems

func ListSumElems(nums *list.List, xs []int, start *list.Element) int

func ShortestPathsLee

func ShortestPathsLee(n int, nbs func(i int) []int, canGo func(i, j int) bool, src int) (parent []int, dist []int)

func ToSnafu

func ToSnafu(n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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