aalekhpatel07 / advent-of-code-2023

My solutions to Advent of Code 2023.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code 2023

These are my solutions to puzzles from this year's Advent of Code.

Usage

  1. Fetch your session cookie that can be obtained by logging in to Advent of Code.
  2. Build the get-inputs executable that will fetch the inputs for the individual days automatically to a ./data/ directory.
    cargo build --release --bin get-inputs --features=inputs
  3. Set the AOC_SESSION environment variable to that value and invoke the get-inputs executable to download the inputs for the days to ./data/<day>.in:
    AOC_SESSION="<your-cookie-goes-here>" ./target/release/get-inputs  
  4. Then run the individual executables with cargo. For example, cargo run --release --bin day-05 will print the solutions for day 05 corresponding to the input in data/05.in.

About

My solutions to Advent of Code 2023.

License:MIT License


Languages

Language:Rust 100.0%