day 22 optimization

main
magical 2023-12-22 06:27:36 +00:00
parent f805d9d373
commit 2635e69315
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ def canlower(block, under):
if block[2][0] <= 1:
return False
x = lower(block)
for u in under:
for u in reversed(under):
if overlaps(u, x):
return False
return True