/aoc-2021

Advent of Code 2021

Primary LanguageJavaScript

Advent of Code 2021 Solutions by hmorri32

This repository contains solutions for the Advent of Code 2021 challenges, implemented in JavaScript.

Structure

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.

Solutions Overview

  • Day 1: Sonar Sweep

    • File: sonarSweep.js
    • A solution related to calculating and interpreting sonar sweep data.
  • Day 2: Dive

    • File: dive.js
    • Involves logic and calculations pertaining to a diving scenario.
  • Day 3: Binary Diagnostic

    • File: binaryDiagnostic.js
    • Deals with binary data and diagnostics.

Running the Solutions

Ensure you have Node.js installed to run the solutions. Eexecute the JavaScript file using Node.js. For example:

node day1/sonarSweep.js

License

This project is open source, feel free to use the code as you please.