From 57b61da0bcbe8e853b049c0abfd9f725d4612cc5 Mon Sep 17 00:00:00 2001 From: Heiko Ludwig Date: Wed, 4 Dec 2024 11:51:21 +0100 Subject: [PATCH] removed debug message, fixed grammar error --- day_04/program.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/day_04/program.py b/day_04/program.py index 4535839..1c8a285 100755 --- a/day_04/program.py +++ b/day_04/program.py @@ -35,7 +35,7 @@ def check_xmas_from_pos(grid: list, row: int, col: int, if new_col < 0 or new_col >= len(grid[0]): return False - # go deeper into recursion with one less letter on the search string + # go deeper into recursion with one less letter in the search string return check_xmas_from_pos(grid, new_row, new_col, direction, xmas_letters[1:]) @@ -47,7 +47,6 @@ def get_xmas_appearances(grid: list) -> int: for col in range(len(grid[0])): for direction in directions: if check_xmas_from_pos(grid, row, col, direction, xmas_letters): - # print(f"Found XMAS at position ({row}, {col}) in direction {direction}") xmas_appearances += 1 return xmas_appearances