AoC# 2024 - Day 1: Historian Hysteria
It’s Advent of Code time 🎄
Advent of Code is an Advent calendar of small programming puzzles for a variety of skill levels that can be solved in any programming language you like.
Given I found watching other developer’s attempts helpful last year, I decided I’d try recording my own this year:
The 1st day is usually straightforward, and gave me a chance to shakedown my recording, exporting and uploading process.
Part 1 ⭐️
The only gotcha I could think of here was the subtraction of a larger number might give a negative value. I didn’t check the input for this situation as taking the absolute of the result would mitigate it: Math.Abs(smaller - larger)
Part 2 ⭐️
I thought there might have been a gotcha where duplicate left-hand values might need to be excluded, but the example explanation covered this situation and included them.