Skip to content

Conversation

@truggeri
Copy link
Owner

Summary

Solution for day 11's puzzle. This solution does not store the number on each stone, but rather the base10 digits. In this way, we avoid cases of integer overflow, and make the act of splitting the digits into two stones very easy. The difficult is multiplying, which is done like a grade school student - long form multiplication. The first implementation was a little sloppy, so a second commit was made that cleans up the implementation.

@truggeri truggeri self-assigned this Dec 23, 2024
@truggeri truggeri merged commit 4b0e792 into main Dec 23, 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.

2 participants