I just completed "Step Counter" - Day 21 - Advent of Code 2023 #AdventOfCode https://adventofcode.com/2023/day/21

My solution in #Python: https://github.com/terminalmage/adventofcode/blob/main/2023/day21.py

I honestly don't know why this doesn't work without using the ceiling of number of grids.

Day 21 - Advent of Code 2023

Thanks to some helpful AoC community members, I discovered the issue with the way I was doing the interpolation, and I've updated my Day 21 #AdventOfCode solution.

https://github.com/terminalmage/adventofcode/blob/main/2023/day21.py

If you're still struggling with this one, check my solution, it's well-documented.

adventofcode/2023/day21.py at main · terminalmage/adventofcode

Contribute to terminalmage/adventofcode development by creating an account on GitHub.

GitHub
@terminalmage Thanks for sharing and the code comments.
@jonhopson No problem at all! I'm generally very verbose in my comments, both professionally and in AoC. You never know when a future puzzle will share some aspects with previous ones, and the odds of me remembering why I made a given choice without those comments is extremely unlikely. So it's as much for my benefit as anyone else's. 😀