/advent-of-code

My solution to Advent of Code challenges written in Rust.

Primary LanguageRust

SLMT's Solution to Advent of Code

Here are my solutions written in Rust for Advent of Code 2020.

How to Run?

I put a few test cases in the code, so you can run the test cases with the following command:

$ cargo test

To run a solution for a particular puzzle, put your input into a file named input.txt and use this:

$ 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) day1_part2 (Code)
2 Password Philosophy day2_part1 (Code) day2_part2 (Code)
3 Toboggan Trajectory day3_part1 (Code) day3_part2 (Code)
4 Passport Processing day4_part1 (Code) day4_part2 (Code)
5 Binary Boarding day5_part1 (Code) day5_part2 (Code)
6 Custom Customs day6_part1 (Code) day6_part2 (Code)
7 Handy Haversacks day7_part1 (Code) day7_part2 (Code)
8 Handheld Halting day8_part1 (Code) day8_part2 (Code)
9 Encoding Error day9_part1 (Code) day9_part2 (Code)
10 Adapter Array day10_part1 (Code) day10_part2 (Code)
11 Seating System day11_part1 (Code) day11_part2 (Code)
12 Rain Risk day12_part1 (Code) day12_part2 (Code)
13 Shuttle Search day13_part1 (Code) day13_part2 (Code)
14 Docking Data day14_part1 (Code) day14_part2 (Code)
15 Rambunctious Recitation day15_part1 (Code) day15_part2 (Code)
16 Ticket Translation day16_part1 (Code) day16_part2 (Code)
17 Conway Cubes day17_part1 (Code) day17_part2 (Code)
18 Operation Order day18_part1 (Code) day18_part2 (Code)
19 Monster Messages day19_part1 (Code) day19_part2 (Code)