Skip to content

Commit 12ca904

Browse files
committed
Fixed a small error in the code
1 parent 618f4e0 commit 12ca904

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎2020/11.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def getAdjecent(coord, map):
3636

3737
def part1(data):
3838
map = {}
39-
new_map = parse(data)
39+
new_map = data
4040
while map != new_map:
4141
map, new_map = new_map, {}
4242
for pos, state in map.items():
@@ -64,7 +64,7 @@ def getVisible(coord, map):
6464

6565
def part2(data):
6666
map = {}
67-
new_map = parse(data)
67+
new_map = data
6868
while map != new_map:
6969
map, new_map = new_map, {}
7070
for pos, state in map.items():

0 commit comments

Comments
 (0)