diff options
-rw-r--r-- | 4.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ class Board: has_bingo: bool unmarked_sum: int nums: set[int] - def __init__(self, cells: list[list[int]]): + def __init__(self, cells: list[list[int]]) -> None: self.width = len(cells[0]) self.height = len(cells) self.col_hits = [0] * self.width @@ -23,7 +23,7 @@ class Board: self.cells.append(cell) self.nums.add(cell) self.has_bingo = False - def call(self, num: int): + def call(self, num: int) -> None: if num not in self.nums: return pos: int = self.cells.index(num) self.col_hits[pos // self.width] += 1 |