diff --git a/src/Year_2019/P6.py b/src/Year_2019/P6.py index 70d1784..2dc12fd 100644 --- a/src/Year_2019/P6.py +++ b/src/Year_2019/P6.py @@ -68,12 +68,12 @@ # What is the total number of direct and indirect orbits in your map data? -with open("files/P6.txt") as f: - orbits = [line for line in f.read().strip().split()] - from collections import defaultdict +with open("files/P6.txt") as f: + orbits = [line for line in f.read().strip().split()] + def count_orbits(universe, node, counter, total_sum): total_sum += counter