Puzzle
Advent of Code 2024
Advent of Code 2024 started today. This is my fifth year participating. Previous years were: 2020, 2021, 2022 and 2023.
Although I primarily use Racket for software development, I'll be using Python this year to gain proficiency with the language in preparation for future data science and artificial intelligence work.
Advent of Code 2023-Day 8: Haunted Wasteland
Day 8 involves navigating binary trees, and modular arithmetic, but I'm getting ahead of myself. Here is our test input:
RL
AAA = (BBB, CCC)
BBB = (DDD, EEE)
CCC = (ZZZ, GGG)
DDD = (DDD, DDD)
EEE = (EEE, EEE)
GGG = (GGG, GGG)
ZZZ = (ZZZ, ZZZ)
Advent of Code 2023-Day 7: Camel Cards
Day 7 involves simulating a card game. Our input looks like:
The left side is our card hand. The right side is our bid amount. As always, we begin with parsing. For our purposes of illustration, I'll skip the first 20 hands to get to a more interesting one with a J: