Categorygithub.com/ghonzo/advent2024
modulepackage
0.0.0-20241225053545-365cb6c4ab88
Repository: https://github.com/ghonzo/advent2024.git
Documentation: pkg.go.dev

# README

advent2024

Advent of Code 2024 in Go

Each day is its own subdirectory, in the file main.go. Usually, the input for the day will be in a file called input.txt. Additionally, the example data is usually in a file called testdata/example.txt and is referenced from the unit tests.

There is also a set of common utility functions and types in the common package.

There is a command leaderboard.go to print out the time it took everyone on a private leaderboard to get the first and second part of a particular day.

Usage of leaderboard.go:
  -day int
    	day to display, or most recent if not provided
  -endpoint string
    	URL of the leaderboard JSON endpoint. Can also set the LEADERBOARD_URL env variable.
  -session string
    	session cookie value. Can also set the LEADERBOARD_SESSION env variable.

Example:

$ go run leaderboard.go -day 3 -endpoint https://adventofcode.com/2024/leaderboard/private/view/123456.json -session 53616c7465645f5f89e40247fe925752de8a696d76c2f03f361ed6ea24283

Day 3                |      Part 1 |      Part 2
------------------------------------------------
Buddy The Elf        |       7m38s |      14m10s
Bonzo                |      12m15s |      17m23s
Stephen Peach        |      11m14s |      18m27s
Tony Tiger           |       19m9s |      27m34s
kenny                |      29m22s |      55m46s
Bender               |     9h35m0s |    10h7m49s
Mouse                |   11h41m55s |   12h33m28s

# Packages

Package common provides common data structures and utility functions for Advent of Code.
Advent of Code 2024, Day 1.
Advent of Code 2024, Day 10.
Advent of Code 2024, Day 11.
Advent of Code 2024, Day 12.
Advent of Code 2024, Day 13.
Advent of Code 2024, Day 14.
Advent of Code 2024, Day 15.
Advent of Code 2024, Day 16.
Advent of Code 2024, Day 17.
Advent of Code 2024, Day 18.
Advent of Code 2024, Day 1.
Advent of Code 2024, Day 2.
Advent of Code 2024, Day 20.
Advent of Code 2024, Day 21.
Advent of Code 2024, Day 22.
Advent of Code 2024, Day 23.
Advent of Code 2024, Day 24.
Advent of Code 2024, Day 25.
Advent of Code 2024, Day 3.
Advent of Code 2024, Day 4.
Advent of Code 2024, Day 5.
Advent of Code 2024, Day 6.
Advent of Code 2024, Day 7.
Advent of Code 2024, Day 8.
Advent of Code 2024, Day 9.