Skip to content

Repository with my Advent of Code 2021 puzzle solutions 🎄

Notifications You must be signed in to change notification settings

fratorgano/advent_of_code_2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎄 Advent of Code 2021 🎄

I decided to stick with Rust this year and try to improve a bit on it, I basically haven't used it since last year's AoC, so you could say I'm a bit RUSTy with it 🥶.

I'm not going to shoot for the leaderboard, the goal is getting all the 50 ⭐ while learning and having fun.

Not only that, but I'll try my best to get every ⭐ within 24 hours of the puzzle release.

❄️ How to use ❄️

cargo run -p day* - Runs a specific day

cargo test -p day* - Tests a specific day

cargo test - Tests all

🥛 Results 🍪

Day Part 1 Time Part 1 Rank Part 1 Runtime1 Part 2 Time Part 2 Rank Part 2 Runtime1
1 00:13:19 5740 19.5µs 00:21:33 5187 20.7µs
2 02:31:32 25070 88.2µs 02:35:27 23492 76.4µs
3 02:55:11 26333 47.2µs 03:33:14 18066 345.3µs
4 04:07:12 15365 172.3µs 04:28:18 14328 313.7µs
5 03:56:48 15828 3.4ms 04:54:06 16137 1.7ms
6 02:33:47 17752 5.6µs 02:42:10 13212 5µs
7 02:31:57 19790 59.8µs 02:45:38 18822 26.5µs
8 02:38:27 17947 89.4µs 05:38:06 14742 972.8µs
9 02:58:36 17499 321.9µs 06:26:57 18828 506.1µs
10 03:05:07 16485 78.9µs 03:36:15 16034 99.1µs
11 03:46:34 11792 246.8µs 03:51:13 11638 791.1µs
12 03:07:44 9230 10.4ms 03:15:37 8001 305.5ms
13 04:32:34 15680 115.8µs 04:43:22 14882 217.9µs
14 15:42:54 33616 88.7µs 17:25:35 27071 308.2µs
15 04:28:42 10779 934.3µs 04:46:01 7905 29.5ms
16 04:58:17 7848 584.7µs 05:15:25 6812 619.9µs
17 04:06:21 9486 1.3µs 04:29:30 8571 7.2ms
18 05:40:34 4227 7.8ms 05:47:09 4084 121.4ms
19 07:12:39 3059 6.2s 07:27:54 2924 6.5s
20 04:31:02 6289 432.9µs 04:45:42 6149 19.8ms
21 03:35:39 8620 6.2µs 04:23:48 4697 12.4ms
22 03:31:10 6787 174.4ms 04:11:45 2500 19.5ms
23 02:53:05 2630 650.3ms 06:52:28 2545 570.3ms
24 05:34:14 2117 1.1s2 05:43:03 2059 13.5s2
25 03:02:52 4016 60.0ms 03:03:34 2721 ---

🎅 Have a Wonderful Holiday Season, Everyone! 🎅

koch flakes

Footnotes

  1. cargo run -p day* --release, does not include the reading of the input file but includes parsing. 2

  2. This was solved on paper, the code isn't well written or optimized. 2

About

Repository with my Advent of Code 2021 puzzle solutions 🎄

Topics

Resources

Stars

Watchers

Forks

Languages