A series of challenges in the spirit of the holidays 🎄
All of these solutions will be written in Python with the following goals in mind:
- Efficiency, where an efficient algorithm will do the job without over-killing the problem. I am aiming for a cumulative sub-15 seconds using plain Python 3.9 (no PyPy or JIT compilers) for these tasks.
- Organization. Avoid duplicate code for better readability and modularity. No 🍝 code!
- Keep it simple!
This year, I'd like to focus more on staying on the leaderboard similar to my 2020 results. It will definitely be more challenging this year given the number of participants :)
Day | Name | Part 1 | Part 2 | Points | Runtime (ms) |
---|---|---|---|---|---|
1 | Sonar Sweep | 518th | 612th | 0 | 1 |
2 | Dive! | 43rd | 157th | 58 | 1 |
3 | Binary Diagnostic | 171st | 96th | 5 | 3 |
4 | Giant Squid | 68th | 29th | 33 + 72 = 105 | 16 |
5 | Hydrothermal Venture | 6th | 36th | 95 + 65 = 160 | 80 |
6 | Lanternfish | 172nd | 132nd | 0 | 1 |
7 | The Treachery of Whales | 75th | 1012th | 26 | 7 |
8 | Seven Segment Search | 83rd | 193rd | 18 | 618 |
9 | Smoke Basin | 35th | 22nd | 66 + 79 = 145 | 30 |
10 | Syntax Scoring | 4511th | 1941th | 0 | 1 |
11 | Dumbo Octopus | 54th | 43rd | 47 + 58 = 105 | 13 |
12 | Passage Pathing | 34th | 22nd | 67 + 79 = 146 | 139 |
13 | Transparent Origami | 119th | 35th | 66 | 1 |
14 | Extended Polymerization | 56th | 33rd | 45 + 68 = 113 | 3 |
15 | Chiton | 8th | 52nd | 93 + 49 = 142 | 291 |
16 | Packet Decoder | 390th | 272nd | 0 | 1 |
17 | Trick Shot | 365th | 219th | 0 | 422 |
18 | Snailfish | 221st | 211th | 0 | 361 |
19 | Beacon Scanner | 150th | 118th | 0 | 2645 |
20 | Trench Map | 810th | 606th | 0 | 1545 |
21 | Dirac Dice | 71st | 14th | 30 + 87 = 117 | 133 |
22 | Reactor Reboot | 78th | 31st | 23 + 70 = 93 | 619 |
23 | Amphipod | 1484th | 595th | 0 | 12340 + 8610 |
24 | Arithmetic Logic Unit | 31st | 26th | 70 + 75 = 145 | 0 |
25 | Sea Cucumber | 124th | 112th | 0 | 1254 |
Score: 1444 points
Rank: 37th
Total runtime: 26490 milliseconds
Credits to Eric Wastl (the creator of AOC) for the amazing ASCII calendar art!
Overall I did better than last year and achieved some pretty good ranks on a few days. I'm pretty stoked about my performance this year, but the lack of sleep + exams kind of killed my mood a bit :c
Excited that I got top 40th overall this time, and looking forward to Advent of Code 2022!