Skip to content

Commit

Permalink
Fix empty-spaces off-by-1
Browse files Browse the repository at this point in the history
smiley face : )
  • Loading branch information
diamondburned committed Mar 20, 2024
1 parent 2fe383d commit 4c706e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions problems/empty-spaces/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def part1_answer(self):
# Return the number of spots in the grid where we can fit a 15x15 square
def part2_answer(self):
ans = 0
for i in range(self.consts["GRID_SIZE"][0] - 15):
for j in range(self.consts["GRID_SIZE"][1] - 15):
for i in range(self.consts["GRID_SIZE"][0] - 14):
for j in range(self.consts["GRID_SIZE"][1] - 14):
valid = True
for x in range(15):
for y in range(15):
Expand Down

0 comments on commit 4c706e6

Please sign in to comment.