rkeytacked / adventofcode-2023

Advent of Code 2023 solutions in plain Javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solutions for Advent of Code 2023

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:

cd src
./day-03.js

The output will look something like:

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

About

Advent of Code 2023 solutions in plain Javascript

License:MIT License


Languages

Language:JavaScript 100.0%