From b3f4a3e67c614ac4a07d25f926f31a7ca56e3c72 Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Fri, 3 Dec 2021 18:07:29 -0500 Subject: [PATCH] Removing unnecessary loops for now --- puzzles/day03.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/puzzles/day03.py b/puzzles/day03.py index 5afd96a..288f443 100644 --- a/puzzles/day03.py +++ b/puzzles/day03.py @@ -59,9 +59,6 @@ class Diagnostics: if len(report) == 1: return int(report[0], 2) - if len(report) > 1: # May not be necessary - report = self.calc_oxygen_generator_rating(report) - return int(report[0], 2) def calc_co2_scrubber_rating(self, inputs: List[str]) -> int: @@ -83,9 +80,6 @@ class Diagnostics: if len(report) == 1: return int(report[0], 2) - if len(report) > 1: # May not be necessary - report = self.calc_oxygen_generator_rating(report) - return int(report[0], 2)