I compared the first 4 #adventofcode solutions on two different CPUs. * Rows with a red background are on 8x Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz. * Rows with a green background are on Apple M3 Max. So if you want to be better at advent of code just get a better CPU? 😆 image
I wonder how long I'll be able to keep all the days green like this #adventofcode 🟢 Today I learned that you can use None when slicing a list in Python: >>> [1,2,3][:None] [1, 2, 3] Useful to avoid the edge case where [:0] would give an empty list: >>> [1,2,3][:0] [] image
Just launched version 25.4 of my adventofcode PyPI package! 🚀 25.4 adds a `adventofcode run` command that removes the ugly boilerplate that you had to have in your puzzle files until now! Before: After: