Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solving day 20 #24

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Solving day 20 #24

merged 1 commit into from
Jan 2, 2025

Conversation

truggeri
Copy link
Owner

@truggeri truggeri commented Jan 2, 2025

Summary

This is a two part solution. Part one - solve the maze using techniques seen in previous days including use of a thread pool to arrive at a solution. Part two - iterate over the maze space (minus the outer ring) and attempt to "cheat" at that point. If the cheat makes sense, that is it cuts between two points in the solution either east-west or north-south, then add it to a map of cheats keyed by the cheat savings.

@truggeri truggeri self-assigned this Jan 2, 2025
@truggeri truggeri merged commit 0eb1174 into main Jan 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant