Advent of Code 2023

https://adventofcode.com/2023

Solutions written in JavaScript.

Usage

Set up new day

This script requires the aocdl session cookie to be configured

./set_up_day <day>

Run solution

node . <day>

Solution files

index.js

This is the code that was first used to solve the problem. Some clean-up has been made before committing.

improved.js

This improves the solution, making it more efficient, concise and readable.

oneliner.js

This solution is meant to be run in the browser console on the problem input page. It will print out an array with the solution to both part 1 and part 2. Line breaks have been added only for readability.