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
- Host: GitHub
- URL: https://github.com/rkeytacked/adventofcode-2024
- Owner: rkeytacked
- License: mit
- Created: 2023-11-30T14:07:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T14:14:45.000Z (11 months ago)
- Last Synced: 2024-12-23T15:25:00.181Z (11 months ago)
- Language: JavaScript
- Size: 60.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- really-awesome-advent-of-code - rkeytacked/adventofcode-2024 - commit/rkeytacked/adventofcode-2024/main) (🎄 2024 AoC Solutions / Solutions)
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
```