Skip to content

Commit b6d0269

Browse files
committed
2023 d1: Fix typos, add utils symlink
1 parent bc1327c commit b6d0269

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

2023/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ line. We can simplify things by building a `dict` to use as a lookup table:
9595

9696
```python
9797
DIGITS = {
98-
'zero' : 0,
9998
'one' : 1,
10099
'two' : 2,
101100
'three': 3,

2023/original_solutions/utils

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../utils

2023/solutions/day01.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ def check_digit(string):
1010
return DIGITS.get(d, 0)
1111

1212
DIGITS = {
13-
'zero' : 0,
1413
'one' : 1,
1514
'two' : 2,
1615
'three': 3,
@@ -48,4 +47,4 @@ def check_digit(string):
4847
# total2 += next(filter(None, map(check_digit, (line[i:] for i in range(len(line) -1, -1, -1)))))
4948

5049
print('Part 1:', total1)
51-
print('Part 1:', total2)
50+
print('Part 2:', total2)

0 commit comments

Comments
 (0)