We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a53fcf2 commit f342272Copy full SHA for f342272
project_euler/problem_081/sol1.py
@@ -26,9 +26,7 @@ def solution(filename: str = "matrix.txt") -> int:
26
data = in_file.read()
27
28
grid = [[int(cell) for cell in row.split(",")] for row in data.strip().splitlines()]
29
- dp = [[0 for cell in row] for row in grid]
30
n = len(grid[0])
31
-
32
dp = [[0 for i in range(n)] for j in range(n)]
33
dp[0][0] = grid[0][0]
34
for i in range(1, n):
0 commit comments