Advent of Code 2021 Solutions by hmorri32
This repository contains solutions for the Advent of Code 2021 challenges, implemented in JavaScript.
Each day's challenge solution is placed in its respective directory (e.g., day1
, day2
, etc.). The solutions are standalone scripts and can be executed independently.
-
Day 1: Sonar Sweep
- File:
sonarSweep.js
- A solution related to calculating and interpreting sonar sweep data.
- File:
-
Day 2: Dive
- File:
dive.js
- Involves logic and calculations pertaining to a diving scenario.
- File:
-
Day 3: Binary Diagnostic
- File:
binaryDiagnostic.js
- Deals with binary data and diagnostics.
- File:
Ensure you have Node.js installed to run the solutions. Eexecute the JavaScript file using Node.js. For example:
node day1/sonarSweep.js
This project is open source, feel free to use the code as you please.