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

Day 18? #1

Closed
Kingfrankbob opened this issue Dec 18, 2022 · 2 comments
Closed

Day 18? #1

Kingfrankbob opened this issue Dec 18, 2022 · 2 comments

Comments

@Kingfrankbob
Copy link

Kingfrankbob commented Dec 18, 2022

Hello, I have been using your code as a reference, and I plug in my input for part 2, and it does not work? I get 2545, and the website claims it is not the right answer, do you mind plugging it in temporarily? If not I can close the issue...

Input.txt

EDIT: When I ran it on my machine I got 2545, and running a different I got 2564.

Again, I apologize if it is just my machine, do not want to waste time!

@Kingfrankbob
Copy link
Author

It turned out to be the way I was running it plus a slight adjustment to the code!

@bradwilson
Copy link
Owner

It's sometimes common that I luck into a solution that works for me but missed some edge case that fails for someone else's data set.

Or, in the case of Day 22, I hand crafted code that's pretty much guaranteed to only work if your map layout is exactly the same as mine. 😂

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

No branches or pull requests

2 participants