From 1cdcecb7f27f7ff11b8451ccff2a7a5b91c29df8 Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Fri, 16 Dec 2022 01:10:29 +1030 Subject: [PATCH] remove out-of-spec filter --- 2022/day15.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/2022/day15.py b/2022/day15.py index e1abaf5..db07f2c 100644 --- a/2022/day15.py +++ b/2022/day15.py @@ -42,8 +42,6 @@ def do_sensors_2(lines: list[str], search_space: int): sensors = [] for line in lines: x, y, nx, ny = line_to_numbers(line) - if not ((0 <= x <= 4_000_000) and (0 <= y <= 4_000_000)): - continue distance = abs(x-nx) + abs(y-ny) sensors.append((x, y, distance)) sensors.sort(key=lambda x: x[0])