52
SOLUTION MEGATHREAD-🎄- 2021 Day 21 Solutions -🎄-(self.adventofcode)
submitted 4 years, 1 month ago* (edited 20 minutes after) by daggerdragon to /r/adventofcode (134.8k)
Advent of Code 2021: Adventure Time!
- 2 days left to submit your adventures!
- Full details and...
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


Java
Basically the idea is to create a map of all possible dice rolls and the number they occur. Then use that to iterate the recursion. Increase the wins by the multiple of the occurrence of the preceding dice rolls. Runs in ~500 ms.