hbiede / AoC-2021

My solutions for the 2021 edition of Advent of Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AoC-2021

CircleCI status

Advent of Code Solutions for 2021 in Rust.

Highlights:

Favorite problems:

  • [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.

Interesting approaches:

  • [Day 6]: Gotta love a good memoization problem

Leaderboard appearances:

Stats

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.

Part 1 Rank Part 2 Rank Part 1 Time Stats Part 2 Time Stats

Note: Times are from time of challenge release, not start time to completion time

Other Years' Solutions

List of Advent of Code Repos

Scripting initially based on a script from Ullaakut. Expanded upon and fixed by HBiede

Makefile Automation

  • 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).
  • 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

About

My solutions for the 2021 edition of Advent of Code

License:MIT License


Languages

Language:Rust 79.5%Language:Python 14.1%Language:Makefile 3.3%Language:Shell 2.3%Language:Awk 0.8%