83
SOLUTION MEGATHREAD-🎄- 2022 Day 3 Solutions -🎄-(self.adventofcode)
submitted 3 years, 1 month ago* (edited 3 days, 4 hours after) by daggerdragon to /r/adventofcode (134.8k)
NEWS
- Solutions have been getting longer, so we're going to start enforcing [our rule on oversi...
since 3 years, 1 month ago
2 of 2
Tip Reveddit Real-Time can notify you when your content is removed.
your account history
Tip Check if your account has any removed comments.
view my removed comments you are viewing a single comment's thread.
view all comments


Rust, code here
Was pleasantly surprised at how easily my part 1 code was used in part 2 as well! You can tell because I didn't rename any of my functions. Did some fun bitwise stuff here, probably some more obvious/effective ways to do it but mine was def fun to write.
...Although now I'm realizing I could've saved some lines and just used map on those iterators instead of doing the conversions manually inside the for loop.
Bitmaps! I love it!