I have decided to participate in this year's Advent of Code challenge, and I will be using Rust to tackle the puzzles.
It is outlined in the second paragraph of the first puzzle,
You've been doing this long enough to know that to restore snow operations, you need to check all fifty stars by December 25th.
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
For additional information, click here.
Note
In compliance with Advent of Code's guidelines, I will not include any
puzzle text or inputs in the repository.
If you're interested, you can find the prompts and puzzles on the
Advent of Code website.
Lets use Day 1 as an example. To execute the solution:
-
Obtain a copy of the input data. All inputs are unique, so you'll need to log into Advent of Code to get yourself a copy.
-
After logging in, click here.
-
Paste that data into
./input/01.txt
, then run the following command:# single-digit days should be padded with an extra zero. cargo run --bin 01
-
Voilà! If all went well, there are now two values in the console.