Skip to content

Commit a66037a

Browse files
committed
fix: return (rows, cols)
1 parent 3fbf301 commit a66037a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_2025/solutions/day07.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ def part2(self, data: list[str]) -> int:
106106
"""
107107
grid = [list(row) for row in data]
108108
rows, cols = len(grid), len(grid[0])
109-
start_col, start_row = self.find_start(grid)
109+
110+
start_row, start_col = self.find_start(grid)
110111

111112
dp = [[0] * cols for _ in range(rows)]
112113

@@ -125,6 +126,7 @@ def part2(self, data: list[str]) -> int:
125126
elif cell == "^":
126127
if c - 1 >= 0:
127128
dp[r + 1][c - 1] += dp[r][c]
129+
128130
if c + 1 < cols:
129131
dp[r + 1][c + 1] += dp[r][c]
130132

0 commit comments

Comments
 (0)