Skip to content

2024 Day 1: Historian Hysteria (C# Solution) #24

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 1 commit into from
Dec 2, 2024
Merged

2024 Day 1: Historian Hysteria (C# Solution) #24

merged 1 commit into from
Dec 2, 2024

Conversation

shadeon
Copy link
Owner

@shadeon shadeon commented Dec 2, 2024

As always with implementing Advent of Code solutions in .Net, LINQ has your back. Got to use the Zip function right out of the gate this week.

I did consider only calculating the counts of any particular group on part 2 if the number was actually found in part 1, but it's probably faster to simply enumerate the input list once and construct the groups rather than repeatedly scanning (I doubt the input space is full of that many dead location ids).

@shadeon shadeon self-assigned this Dec 2, 2024
@shadeon shadeon merged commit bd82b95 into main Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant