mirror of
https://github.com/Noettore/AdventOfCode.git
synced 2025-10-15 03:36: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))
|
bits = list(map(int, line))
|
||||||
if bits[column_number] == 0:
|
if bits[column_number] == 0:
|
||||||
cb -= 1
|
cb -= 1
|
||||||
elif cb == 1:
|
elif bits[column_number] == 1:
|
||||||
cb += 1
|
cb += 1
|
||||||
return cb
|
return cb
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user