Skip to content

go: add solution for year 2015, day 04 #11

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 5 commits into from
Nov 4, 2019
Merged

go: add solution for year 2015, day 04 #11

merged 5 commits into from
Nov 4, 2019

Conversation

saser
Copy link
Owner

@saser saser commented Nov 4, 2019

This was a slow one, due to the fact that the solution can only be brute-forced (as far as I am aware). I tried to make it at least not excruciatingly slow, but I can't be arsed to do a lot of micro-optimizations.

Bencmarks (go test -bench=Day04 -benchtime=1m ./internal/year2015):

Part Benchmark
Part 1 169096163 ns/op (~169 ms/op)
Part 2 4816739203 ns/op (~4816 ms/op)

@saser saser merged commit f128623 into master Nov 4, 2019
@saser saser deleted the go/2015/04 branch November 4, 2019 17:41
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