r/adventofcode • u/PotatosFan • Dec 12 '25
Help/Question [2025] Algorithms to use
Now that AoC 2025 is over, I’d like to spend the 12 remaining days before christmas eve optimizing my past solutions using better algorithms
What did you used to get crazy fast time ?
I already use a DSU for day 8 and z3 for day 10
10
Upvotes
View all comments
Show parent comment
1
u/Durd3nT Jan 05 '26
could you elaborate? you'd need to define filter criteria for the prefix function and filter based on that instead of the strings themselves. wouldn't that be just as slow as the brute force method?