Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Well, I did solve it. I had to find a way to not use strings and used a defaultdict instead. At the end, however, I only add the last character to the count which yields the correct result. You can find my solution here. The code is definitely not the best one I've written lol...
This is [how I solved it at first](https://github.com/samsonjj/advent-of-code/blob/main/2021/day-14/src/bin/main.rs), but it takes 50ms on my machine in Rust. Mind elaborating on how yours was optimized?
Here's my solution.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.