This repository has been archived on 2026-12-02 . You can view files and clone it. You cannot open issues or pull requests or push a commit.
d9d55b069f2b17257341ae1cb939adb4cc47fb91
Part 2 doesn't actually require tracking state at all, it's enough to just follow the rules and count every DFS that lands on a target square. Part 1 optimized by only tracking which targets have been previously visited, instead of all squares. Both parts, pass position reference to recursive calls instead of by value for tiny improvement.
Languages
Rust
100%