Skip to content

AndrewSav/adventofcode2021-golang

Folders and files

NameName
Last commit message
Last commit date
Apr 22, 2023
Apr 22, 2023
Apr 22, 2023
Apr 22, 2023
Apr 22, 2023
Apr 22, 2023
Aug 12, 2023
Apr 22, 2023
Apr 22, 2023
Apr 22, 2023
Apr 22, 2023
Apr 22, 2023
Aug 12, 2023
Aug 12, 2023
Apr 22, 2023
Aug 12, 2023
Apr 22, 2023
Aug 12, 2023
Aug 12, 2023
Apr 22, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Apr 22, 2023
Apr 22, 2023
Apr 5, 2023
Aug 12, 2023
Apr 5, 2023
May 31, 2022
Aug 12, 2023
Apr 5, 2023
Apr 5, 2023
May 31, 2022
Apr 22, 2023

Repository files navigation

Advent of Code 2021

Go 1.20 solutions to the Advent of Code problems. Check out https://adventofcode.com/2021

  • Put input.txt as downloaded from the Advent of Code website into the folder corresponding to the day
  • Run go generate, go build, ./aoc2021 day part
  • Run ./aoc2021 -h for options

Dependencies

For building:

  • PowerShell (if using build.ps1)
  • goimports (if using goimports instead of go fmt)
  • modd (if using modd)

https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell

go install golang.org/x/tools/cmd/goimports@latest
go install github.com/cortesi/modd/cmd/modd@latest

For code:

Notes

  • Input is never validated, it is assumed to be correct
  • Tested on PC (intel i9) and Raspberry Pi
  • On the test PC each puzzle part did not take more then 100 milliseconds to run
  • Downloaded puzzle texts is in the puzzles folder. It is not always entirely accurate as godown occasionally makes a mistake.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published