An open API service indexing awesome lists of open source software.

https://github.com/rkeytacked/adventofcode-2024

Advent of Code 2024 solutions in plain Javascript
https://github.com/rkeytacked/adventofcode-2024

Last synced: 2 months ago
JSON representation

Advent of Code 2024 solutions in plain Javascript

Awesome Lists containing this project

README

          

# Solutions for Advent of Code 2024

See https://adventofocde.com/ for details about the game.

## Local development

The scripts to solve the puzzles are written in JavaScript.

To run a single day script, e.g. for day 03:

```shell
cd src
./day-03.js
```
The output will look something like:
```text
gamma 0,1,1,0,0,1,0,1,0,0,0,0
epsilon 1,0,0,1,1,0,1,0,1,1,1,1
solution #1: 1616 * 2479 = 4006064

-----------------------------------------------------------

oxygens 0,1,1,0,0,0,1,1,1,1,1,1
scrubbers 1,1,1,0,1,0,0,0,0,1,0,0
solution #2: 1599 * 3716 = 5941884
```