Solution to problem 10 in Python

This commit is contained in:
David Doblas Jiménez 2022-06-11 16:16:18 +02:00
parent 8fa6d1d2a0
commit 6bafefe841

View File

@ -180,21 +180,6 @@ def part_2() -> None:
print(f"The middle score is {res}")
# part1, part2 = 0, []
# for row in puzzle:
# stack, score = [], 0
# for c in row:
# if c in pairs:
# stack.append(pairs[c])
# elif stack.pop() != c:
# part1 += points[c]
# break
# else:
# for c in reversed(stack):
# score = score * 5 + ' )]}>'.index(c)
# part2.append(score)
# return part1, sorted(part2)[len(part2)//2]
if __name__ == "__main__":
part_1()
part_2()