From 0d473b23584e9f8e87856db167d285cd899347a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Wed, 18 Dec 2019 20:37:36 +0100 Subject: Implement LCM and remove coverage Runtime is at 6 seconds with pypy oof. --- 19/py/d03.py | 3 --- 1 file changed, 3 deletions(-) (limited to '19/py/d03.py') diff --git a/19/py/d03.py b/19/py/d03.py index 70bf9f0..b1fa9d8 100644 --- a/19/py/d03.py +++ b/19/py/d03.py @@ -1,4 +1,3 @@ -from profilehooks import coverage import math def intersection(l1, l2): @@ -9,7 +8,6 @@ def intersection(l1, l2): def man_dist(point): return abs(point[0]) + abs(point[1]) -#@coverage def pt1(input): wire1 = [] wire2 = [] @@ -41,7 +39,6 @@ def pt1(input): dist = min(dist, man_dist(point)) return dist -#@coverage def pt2(input): wire1 = {} wire2 = {} -- cgit v1.2.1