Skip to content

go: add solution for year 2015, day 05 #12

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

go: add solution for year 2015, day 05 #12

merged 6 commits into from
Nov 4, 2019

Conversation

saser
Copy link
Owner

@saser saser commented Nov 4, 2019

I found the solution of specifying a list of conditions to be a fairly easy way to solve this problem. It runs fast enough, too.

Benchmarks (go test -bench=Day05 ./internal/year2015):

Part Benchmark
Part 1 159984 ns/op (~0.160 ms/op)
Part 2 218056 ns/op (~0.218 ms/op)

@saser saser merged commit e91e876 into master Nov 4, 2019
@saser saser deleted the go/2015/05 branch November 4, 2019 18:30
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