Implement day 3 solver

This commit is contained in:
2024-12-03 01:29:47 -08:00
parent a1db2a4adf
commit ff27a625b3
4 changed files with 40 additions and 4 deletions

View File

@@ -32,12 +32,12 @@ def main():
try:
print("Testing part 1 solution...")
start = time()
assert mod.solve_p1(mod.test_input) == mod.test_solution_p1
assert mod.solve_p1(mod.test_input_p1) == mod.test_solution_p1
print(f"Test passed in {time() - start:.3f} seconds")
print("Testing part 2 solution...")
start = time()
assert mod.solve_p2(mod.test_input) == mod.test_solution_p2
assert mod.solve_p2(mod.test_input_p2) == mod.test_solution_p2
print(f"Test passed in {time() - start:.3f} seconds")
except AssertionError: