Skip to content

Commit 2a58757

Browse files
committed
Fix typo
1 parent 147b43c commit 2a58757

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

aoc/2025/03/normal/03_normal.vn.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212

1313
@cache
1414
def best(row, n, start=0):
15-
if len(row) - start < n or n == 0: return 0
15+
if len(row) - start < n or n == 0:
16+
return 0
1617

17-
return max(
18+
return max(
1819
best(row, n, start + 1),
19-
row[0] * 10**(n-1) + best(row[1:], start + 1, n - 1)
20+
row[start] * 10**(n-1) + best(row, n - 1, start + 1)
2021
)
2122

2223
for row in tqdm(inp):

0 commit comments

Comments
 (0)