Skip to content

java: add solutions for year 2016, day 17 #108

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

Merged
merged 3 commits into from
Jan 9, 2020
Merged

java: add solutions for year 2016, day 17 #108

merged 3 commits into from
Jan 9, 2020

Conversation

saser
Copy link
Owner

@saser saser commented Jan 9, 2020

This was a simple enough graph search problem, again using Dijkstra's algorithm. One interesting thing is that every state here is unique, since the state is equal to the path, and the path is always appended to. As such, we do not need the usual set of visited states, since we are sure to never visit the same state twice.

@saser saser merged commit 5b928d4 into master Jan 9, 2020
@saser saser deleted the java/2016/17 branch January 9, 2020 11:22
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