mirror of
https://github.com/Noettore/AdventOfCode.git
synced 2025-10-14 19:26:39 +02:00
AoC 2021: day3 fixed typo
This commit is contained in:
@@ -47,7 +47,7 @@ def common_bit(lines: list, column_number: int) -> int:
|
||||
bits = list(map(int, line))
|
||||
if bits[column_number] == 0:
|
||||
cb -= 1
|
||||
elif cb == 1:
|
||||
elif bits[column_number] == 1:
|
||||
cb += 1
|
||||
return cb
|
||||
|
||||
|
Reference in New Issue
Block a user