I was worried that this would be pathfinding. Thankfully it was not pathfinding. Was definitely a fun problem, and I used more than a couple of comprehensions to get this done.
Solution: https://git.jamesthebard.net/jweatherly/advent-of-code/src/branch/main/2…
France Roasts Musk For Claiming Child Porn Probe Is Political Ploy: "Maybe That Logic Flies On Some Island" - Joe.My.God.
https://www.joemygod.com/2026/02/france-roasts-musk-for-claiming-child-porn-probe-is-political-ploy-maybe-that-logic-flies-on-some-island/
Changed the code structure slightly from the Python solve, added the `itertools` package because I wanted `product`. Works perfectly and I'd argue slightly more readable than the Python version. Overall pretty satisfied with the solution.
Solution: https://git.jamesthebard…
🇺🇦 #NowPlaying on KEXP's #MorningShow
Jane’s Addiction:
🎵 Mountain Song
#JanesAddiction
https://thekingsofquarantine.bandcamp.com/track/mountain-song-janes-addiction-cover
https://open.spotify.com/track/5fKZJHzJ9d3MADArbm9muW
@… Einstellung -> »Profilseite in Suchmaschinen einbeziehen ist wohl nicht aktiviert.« https://docs.joinmastodon.org/user/profile/#discoverable
This one was disturbingly easy for Part 1, then got more fun on Part 2. The name of the game is rotations, and rotating the input was the key to getting it done without too much bother.
Solution: https://git.jamesthebard.net/jweatherly/advent-of-co…
🇺🇦 #NowPlaying on KEXP's #DriveTime
Jane’s Addiction:
🎵 Mountain Song
#JanesAddiction
https://thekingsofquarantine.bandcamp.com/track/mountain-song-janes-addiction-cover
https://open.spotify.com/track/5fKZJHzJ9d3MADArbm9muW
This took waaaay too long because I kept overlooking a glaring mistake at the range reduction algorithm, but once I saw it things went much more smoothly.
The #nim solution actually optimizes the range reduction step and comes in under a millisecond to execute which was nice.
Solution:
I stayed up far too long tonight for this one, but it was fun. Saw that we were dealing with an absolute metric ton of ranges at the very beginning so my initial thought was to reduce/merge those ranges and that's what I spent most of my time on before even tackling part 1.
It paid off tremendously and made solving everything very, very easy. There's still the Nim version to write, but I'll handle that after I get some sleep.
Solution: