https://github.com/slmt/advent-of-code
My solution to Advent of Code challenges written in Rust.
https://github.com/slmt/advent-of-code
Last synced: about 1 year ago
JSON representation
My solution to Advent of Code challenges written in Rust.
- Host: GitHub
- URL: https://github.com/slmt/advent-of-code
- Owner: SLMT
- Created: 2020-12-02T03:48:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-20T10:56:55.000Z (over 5 years ago)
- Last Synced: 2025-02-11T15:57:27.973Z (over 1 year ago)
- Language: Rust
- Size: 50.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SLMT's Solution to Advent of Code
Here are my solutions written in Rust for [Advent of Code 2020](https://adventofcode.com/2020/).
## How to Run?
I put a few test cases in the code, so you can run the test cases with the following command:
```bash
$ cargo test
```
To run a solution for a particular puzzle, put your input into a file named `input.txt` and use this:
```bash
$ cargo run --bin [NAME OF BINARY] < input.txt
```
Check below for the names of the binaries for all the puzzles:
| Day | Name | Part 1 Solution Binary | Part 2 Solution Binary |
|:-:|:-:|:-:|:-:|
| 1 | Report Repair | `day1_part1` ([Code](src/bin/day1_part1.rs)) | `day1_part2` ([Code](src/bin/day1_part2.rs)) |
| 2 | Password Philosophy | `day2_part1` ([Code](src/bin/day2_part1.rs)) | `day2_part2` ([Code](src/bin/day2_part2.rs)) |
| 3 | Toboggan Trajectory | `day3_part1` ([Code](src/bin/day3_part1.rs)) | `day3_part2` ([Code](src/bin/day3_part2.rs)) |
| 4 | Passport Processing | `day4_part1` ([Code](src/bin/day4_part1.rs)) | `day4_part2` ([Code](src/bin/day4_part2.rs)) |
| 5 | Binary Boarding | `day5_part1` ([Code](src/bin/day5_part1.rs)) | `day5_part2` ([Code](src/bin/day5_part2.rs)) |
| 6 | Custom Customs | `day6_part1` ([Code](src/bin/day6_part1.rs)) | `day6_part2` ([Code](src/bin/day6_part2.rs)) |
| 7 | Handy Haversacks | `day7_part1` ([Code](src/bin/day7_part1.rs)) | `day7_part2` ([Code](src/bin/day7_part2.rs)) |
| 8 | Handheld Halting | `day8_part1` ([Code](src/bin/day8_part1.rs)) | `day8_part2` ([Code](src/bin/day8_part2.rs)) |
| 9 | Encoding Error | `day9_part1` ([Code](src/bin/day9_part1.rs)) | `day9_part2` ([Code](src/bin/day9_part2.rs)) |
| 10 | Adapter Array | `day10_part1` ([Code](src/bin/day10_part1.rs)) | `day10_part2` ([Code](src/bin/day10_part2.rs)) |
| 11 | Seating System | `day11_part1` ([Code](src/bin/day11_part1.rs)) | `day11_part2` ([Code](src/bin/day11_part2.rs)) |
| 12 | Rain Risk | `day12_part1` ([Code](src/bin/day12_part1.rs)) | `day12_part2` ([Code](src/bin/day12_part2.rs)) |
| 13 | Shuttle Search | `day13_part1` ([Code](src/bin/day13_part1.rs)) | `day13_part2` ([Code](src/bin/day13_part2.rs)) |
| 14 | Docking Data | `day14_part1` ([Code](src/bin/day14_part1.rs)) | `day14_part2` ([Code](src/bin/day14_part2.rs)) |
| 15 | Rambunctious Recitation | `day15_part1` ([Code](src/bin/day15_part1.rs)) | `day15_part2` ([Code](src/bin/day15_part2.rs)) |
| 16 | Ticket Translation | `day16_part1` ([Code](src/bin/day16_part1.rs)) | `day16_part2` ([Code](src/bin/day16_part2.rs)) |
| 17 | Conway Cubes | `day17_part1` ([Code](src/bin/day17_part1.rs)) | `day17_part2` ([Code](src/bin/day17_part2.rs)) |
| 18 | Operation Order | `day18_part1` ([Code](src/bin/day18_part1.rs)) | `day18_part2` ([Code](src/bin/day18_part2.rs)) |
| 19 | Monster Messages | `day19_part1` ([Code](src/bin/day19_part1.rs)) | `day19_part2` ([Code](src/bin/day19_part2.rs)) |