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…
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…
In neither this year nor the next should anyone expect Russia to propose a deal that is meaningfully different from what it has already.
How do we change the circumstances?
There are two main levers.
The first deteriorates conditions inside Russia to the point that Mr. Putin is forced to consider ending the war as the lesser evil,
and it is achieved by imposing sanctions that would be powerful and smart enough to erode Russia’s capacity to wage war and significantly i…
Ooooo, I knew that my initial solution for Part 1 was going to get absolutely discarded for Part 2 (which inevitably came true). Lots of string sorting, grabbing an index, and a moving window to find the largest value.
Pretty proud of the solve, it's fast and it's all that janky.
Solution: https://<…
Ukrainian intelligence fakes commander's death, takes 0.5M bounty from russians.
https://kyivindependent.com/ukraines-hur-faked-death-of-top-anti-putin-russian-commander-claimed-kremlin-bounty-money/
The #nim solution looks very similar to the Python one, but that works out well enough as the method works great on both. Didn't check to see if Nim had a `for/else` construction, but a friend threatened me with death if I tried.
Solution:
Finally saw this. @… (and me 🙇♂️) featured on @… 's talk "The Future is federated" in #fediday2025 (3-5 Oct 2025)
Link…
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:
This solve felt more like #nim and less like me writing Python. More uses of `map` and `apply`, using `if/then` as a proper ternary, integer -> string conversions, etc. Also the `sugar` module makes me a happy person.
The day 2 solution in Nim: