I tried to teach myself Rust by solving the Advent of Code 2017. So beware of ugly and non-idiomatic code.
Day | Part 1 | Part 2 | How to run solution |
---|---|---|---|
1 | ☑ | ☑ | cargo run (input must be in input.txt in working directory) |
2 | ☑ | ☑ | cargo run (input must be in input.txt in working directory) |
3 | ☑ | ❎ | cargo run 1234 (replace 1234 with your input) |
4 | ☑ | ☑ | cargo run (input must be in input.txt in working directory) |
5 | ☑ | ☑ | cargo run (input must be in input.txt in working directory) |
6 | ☑ | ☑ | cargo run input_file |
7 | ☑ | ☑ | cargo run input_file (part two needs manual labour: it only gives the unbalanced subtree, one still needs to calculate the correct weight) |
8 | ☑ | ☑ | cargo run input_file |
9 | ☑ | ☑ | cargo run input_file |
10 | ☑ | ☑ | cargo run input_file |
11 | ❎ | ❎ | |
12 | ❎ | ❎ | |
13 | ☑ | ☑ | cargo run input_file (part 2 takes a long time) |
14 | ❎ | ❎ | |
15 | ❎ | ❎ | |
16 | ☑ | ☑ | cargo run input_file |
17 | ☑ | ☑ | cargo run input_file |
18 | ☑ | ☑ | cargo run input_file |
19 | ❎ | ❎ | |
20 | ❎ | ❎ | |
21 | ❎ | ❎ | |
22 | ❎ | ❎ | |
23 | ❎ | ❎ | |
24 | ❎ | ❎ | |
25 | ❎ | ❎ |