Skip to content

Conversation

truggeri
Copy link
Owner

Summary

I attempted to use a trie for this, though upon reflection it could have been done in a number of other manners. The trie is built using a map to point to the next node. Just like in day 18 (#22 ), I used a thread pool to avoid an exponential increase the number of paths ("threads") that are tested.

@truggeri truggeri self-assigned this Dec 31, 2024
@truggeri truggeri merged commit 34e5851 into main Dec 31, 2024
1 check passed
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