19
SOLUTION MEGATHREAD-❄️- 2024 Day 22 Solutions -❄️-(self.adventofcode)
submitted 1 year, 1 month ago* (edited 12 minutes after) by daggerdragon to /r/adventofcode (134.8k)
THE USUAL REMINDERS
- All of our rules, FAQs, resources, etc. are in our [community wiki](https:...
since 1 year, 1 month ago
10 of 10
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


[removed]
Restore AllHide UnarchivedOn my computer your code reports 848ms/5.1s. What do you have as computer to go down to 1.7s?
Seems fishy to me. My code is usually rather performant and I could only reach 3.7s using base 20 encoding of the changes. And I do not see many Python code under 4s for part 2in this thread.
[removed]
Restore AllHide UnarchivedHere it is : GitHub
I optimized it further and got 1.4s but we are talking inlining of function ;)
My computer is an i5-12600KF@3.70 GHz
[removed]
Restore AllHide UnarchivedI have 4 635 125 patterns to add in the results.
[removed]
Restore AllHide UnarchivedMany of them are the same. I end with a bit less of 50 000 patterns. But you have to generate them all. 2406x1997 in my input. And after removing those already seen in the current seed. I still have to tally those 4.6millions prices in their pattern.
[removed]
Restore AllHide UnarchivedApparently, thanks for the profiling 😉