Skip to content

Solutions to 2024 Advent of Code challenges (hopefully!)

Notifications You must be signed in to change notification settings

glsdown/adventofcode-2024

Repository files navigation

Advent of Code 2024

These are my solutions to the 2024 Advent of Code. They will not be neatly polished solutions, but attempt to simply solve the problem.

To use this, you need to ensure that you have set up the AOC Session cookie. To get this, in a browser, log into AOC and head to one of the pages where you get your input data e.g. day 1 here. Then open the inspector, and head to the Network tab. Refresh the page, and look for the "input" request. Click on that, and look at the Headers. There should be one that says "Cookie". The value after session= is the AOC session cookie to use.

To automatically generate the files for the next day to complete, first install the requirements:

pip install -r requirements.txt

Then make use of the helper function get_next_day.py

python get_next_day.py

This will retrieve your puzzle input, as well as create a template python file to solve it. It will also create a file for you to add the example data in from the question.

About

Solutions to 2024 Advent of Code challenges (hopefully!)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages