day01

package
v0.0.0-...-2c52637 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package day01 contains code relating to AOC day01 of 2024

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFile

func ParseFile(filename string) (LocationIDList, LocationIDList)

ParseFile parses puzzle input

Types

type LocationIDList

type LocationIDList []int

LocationIDList represents a list of LocationID

func (LocationIDList) DifferenceScore

func (lst LocationIDList) DifferenceScore(other LocationIDList) int

DifferenceScore computes the DifferenceScore between 2 lists

func (LocationIDList) SimilarityScore

func (lst LocationIDList) SimilarityScore(other LocationIDList) int

SimilarityScore computes SimilarityScore between 2 lists

Jump to

Keyboard shortcuts

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