Advent of Code is a series of programming puzzles that are presented at the beginning of each day of the Advent calendar. Every year, two puzzles are presented on each day, starting on December 1 and ending on December 25. The puzzles increase in difficulty as the days go by. The ones toward the end become quite challenging. The solution to all puzzles involves writing code in the programming language of choice.
I am sharing my personal solutions here on GitHub for future reference and for anyone who might be interested. The language of choice for these solutions is TypeScript using the Bun runtime. I have integrated my BunOps console menu project as a nifty way to run the puzzle solutions and I make heavy use of my eaz-utils library throughout.
Advent of Code has an interesting competitive element to it. The puzzle is released to the public at exactly midnight EST each day. Their system keeps track of how fast everyone submits results and compares participants on leaderboards. Since I can't go back and participate in older competitions in real time, I use a stopwatch to measure my speed and report my times below (part1 / part2) in hh:mm:ss format. I pause time for breaks, especailly for harder puzzles that span multiple days. It will be interesting to see how much faster I get as I work through them over time.
Day 1: Not Quite Lisp (00:02:10 / 00:01:43)
Day 2: I Was Told There Would Be No Math (00:17:04 / 00:10:50)
Copyright 2024 Quantum10101
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.