advent of code 2025

micro optimization

kot.pink f19cc6a5 04e3f385

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