From 3c77bf54fcf28fee63a0df55f3a81ef7b494f9b4 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Tue, 24 Dec 2019 11:36:43 -0500 Subject: [PATCH] Simplify day 21 part 2 --- day21/py/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/day21/py/main.py b/day21/py/main.py index 10103f5..1e7a893 100644 --- a/day21/py/main.py +++ b/day21/py/main.py @@ -225,8 +225,8 @@ def part2(memory: Memory) -> int: 'AND D J', # Check to make sure that the space after our jump is filled, and two jumps away. - # The one after two our jump should also be empty - 'NOT F T', + # J(~J + E + H) distributes TO (E + H) + 'NOT J T', 'OR E T', 'OR H T', # If this condition isn't met, cancel our jump