Skip to content

java: add solution for year 2016, day 25 #118

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 8 commits into from
Jan 13, 2020
Merged

java: add solution for year 2016, day 25 #118

merged 8 commits into from
Jan 13, 2020

Conversation

saser
Copy link
Owner

@saser saser commented Jan 13, 2020

That concludes year 2016!

This final assembunny problem could of course be solved by reverse engineering, but I did a more "soft reverse engineering" this time. Instead of trying to study the code in detail, I just ran the program for a couple of inputs (i.e. values of a), and noted the values of the registers as well as what was output. From there I solved the problem -- read more in the comments of the part1 function.

I think it is a little bit sad that all of these assembunny problems did not really require you to implement and use your VM -- you could just reverse engineer everything instead. I liked year 2019 better that way: you really had to implement the intcode VM there, since several of the problems more heavily relied on actually running intcode programs, not simply reverse engineer them.

Anyway, rant over. I am happy that I am done with year 2016 now! Now there is only a few days each left in years 2017 and 2018 before I have completed all of the puzzles.

@saser saser merged commit 408cc75 into master Jan 13, 2020
@saser saser deleted the java/2016/25 branch January 13, 2020 23:37
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