From 77b158aacf7b8baeb4d29a24e68696ee0303cf67 Mon Sep 17 00:00:00 2001 From: Pascal Lais Date: Tue, 14 Dec 2021 09:22:27 +0100 Subject: [PATCH] Fix day 14 solution --- day-14/day-14.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/day-14/day-14.py b/day-14/day-14.py index 5910284..d57a955 100644 --- a/day-14/day-14.py +++ b/day-14/day-14.py @@ -25,8 +25,6 @@ def solve(input, part, num_cycles): char_counts[k[1]] += counts[k] char_counts[template[0]] += 1 char_counts[template[-1]] += 1 - for k in char_counts: - char_counts[k] //= 2 counts = [char_counts[k] // 2 for k in char_counts] result = max(counts) - min(counts) print("Part", part, "result:", result)