advent of code 2025

micro optimization

kot.pink f19cc6a5 04e3f385

verified
+2 -1
+1
.gitignore
··· 1 1 *.input 2 + .mypy_cache
+1 -1
4.py
··· 35 35 while len(removable): 36 36 for (y, x) in removable: 37 37 grid[y][x] = "." 38 - removed_rolls += 1 38 + removed_rolls += len(removable) 39 39 removable = search_removable() 40 40 41 41 print(f'p2: {removed_rolls}')