These are already done in Elixir, so this is
just done for the flex.
Also, coming from Day 16-18 from 2023 calendar,
it is safe to say 2015 puzzles are easier and more
manageable.
* Solve 2015:16 "Aunt Sue"
* Make 2023:08 future compatible
Code used to work with another version of python.
* Solve 2015:17 "No such Thing as Too much"
* Solve 2015:18 "Like a GIF For Your Yard"
Also solve 2015:06 just in case, was just a ref
in the end.
* Solve 2015:19 "Medicine for Rudolph"
* Solve 2015:20 "Infinite Elves and Infinite Houses"
* Solve 2023:21 "RPG Simulator 20XX"
* Solve 2015:22 "Wizard Simulator 20XX"
* Solve 2015:23 "Opening the Turing Lock"
* Solve 2015:25 "Let it Snow"
Wrote p2rc and rc2p just for academic purposes.
Puzzles could be solved anyway.
* Solve 2015:24 "Hangs in the Balance"
---------
Co-authored-by: Anders Englöf Ytterström <anders@playmaker.ai>
I brainfarted and had a hard time trying to
understand the instructions.
> Incrementing is just like counting with numbers: xx, xy, xz, ya, yb, and so on. Increase the rightmost letter one step; if it was z, it wraps around to a, and repeat with the next letter to the left until one doesn't wrap around.
I only managed to understand it by looking at solutions on the
subreddit, figuring out the correct behavior:
az -> ba, azzz -> baaa, azzzzz -> baaaaa etc.
I also sped up the test case containing `ghi` as initial password,
by looking for the leftmost invalid I, L or O and increase it,
replacing all following chars with `a`.
ghijklmn -> ghjaaaaa.