44
SOLUTION MEGATHREAD-🎄- 2021 Day 16 Solutions -🎄-(self.adventofcode)
submitted 4 years, 1 month ago* (edited 27 minutes after) by daggerdragon to /r/adventofcode (134.8k)
NEW AND NOTEWORTHY
DO NOT POST SPOILERS IN THREAD TITLES!
- The only exception is for `Help...
since 4 years, 1 month ago
1 of 1
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 842/760
Unfortunately, I got burned using 32 bit integers for part 2.
Made a struct to keep track of the current consumption position rather than passing around, probably could have used some iterator functions for that as well. Also considered using nom, may go back and try that later to see if it comes out cleaner.
Edit: Golfed it down to under 60 lines