Advent of Code Solutions for 2021 in Rust.
- [Day 8]: The second star of this day (7-segment decoding) was a bit tricky, but a unique problem I don't frequently face.
- [Day 12]: The modified DFS was pretty fun to think through.
- [Day 6]: Gotta love a good memoization problem
Day | Part 1 Time (Rank) | Part 2 Time (Rank) |
---|---|---|
1 | 12:01:01 (67084) | 12:04:18 (67084) |
2 | 00:14:47 ( 8741) | 00:17:26 ( 8741) |
3 | 00:17:07 ( 6083) | 00:57:45 ( 6083) |
4 | 01:21:50 ( 7726) | 01:24:40 ( 7726) |
5 | 00:15:50 ( 1712) | 00:49:02 ( 1712) |
6 | 00:07:42 ( 1898) | 00:38:18 ( 1898) |
7 | 00:10:58 ( 4963) | 00:48:52 ( 4963) |
8 | 00:11:09 ( 2427) | 01:10:57 ( 2427) |
9 | 00:18:13 ( 4231) | 00:30:30 ( 4231) |
10 | 00:09:42 ( 1455) | 00:22:29 ( 1455) |
11 | ✅ | ✅ |
12 | ✅ | ✅ |
13 | ✅ | ✅ |
14 | ✅ | ✅ |
15 | ✅ | ✅ |
16 | ✅ | ✅ |
17 | ✅ | ✅ |
Avg | 10:46:22 (22182) | 11:00:15 (21178) |
Note: After spending a lot of time on day 16 and not finishing part 1, I took an open source solution and modified it.
Note: Times are from time of challenge release, not start time to completion time
- Automatically downloads the challenge and input for the day (e.g.:
make download DAY=03
)- In order to use this target, you need to specify your session cookie from adventofcode.com in cookies.txt through the usage of
make cookie SESSION={Insert your session cookie here}
. - Parses the challenge into a markdown file (adds Markdown style headers and code blocks).
- In order to use this target, you need to specify your session cookie from adventofcode.com in cookies.txt through the usage of
- Setup the new day's source file from a template file while downloading the input and challenge per above (e.g.:
make DAY=03
) - Create the stats table above by calling
make stats
- May require calling
pip3 install -r requirements.txt
to ensure you have all the necessary python dependencies
- May require calling