Skip to content

Commit e2de0fe

Browse files
committed
Remove unused position type and neighbors dictionary from 2024/04.py
1 parent 1c22898 commit e2de0fe

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

2024/04.py

-20
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,6 @@ def part_a(data):
4949
return result
5050

5151

52-
POSITION_TYPE = tuple[int, int]
53-
54-
NEIGHBORS_DICT: dict[str, POSITION_TYPE] = {
55-
"U": (-1, 0),
56-
"D": (1, 0),
57-
"L": (0, -1),
58-
"R": (0, 1),
59-
"UL": (-1, -1),
60-
"UR": (-1, 1),
61-
"DL": (1, -1),
62-
"DR": (1, 1),
63-
"S": (0, 0),
64-
}
65-
66-
P2 = [
67-
[(NEIGHBORS_DICT[d], x) for d, x in zip(["UL", "DL", "DR", "UR"], m)]
68-
for m in ["MMSS", "SMMS", "SSMM", "MSSM"]
69-
]
70-
71-
7252
def part_b(data):
7353
data = NoNegatives([NoNegatives(row) for row in data])
7454
result = 0

0 commit comments

Comments
 (0)