-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2023 day 17: incorporate optimizations from reddit
* reduce state/search space by making all possible moves from a position at once, so we don't need to store `move_count` (from /u/4HbQ, https://www.reddit.com/r/adventofcode/comments/18k9ne5/2023_day_17_solutions/kdqp7jx/) * further reduce state space by only storing the horizontal/vertical orientation, rather than the full direction (from /u/Szeweq, https://www.reddit.com/r/adventofcode/comments/18k9ne5/2023_day_17_solutions/kdqeywd/)
- Loading branch information
Showing
1 changed file
with
55 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters