This commit is contained in:
thib8956 committed 2026-11-11 15:36:53 +01:00
1 parent 0232b9326d
commit 5c3fb89870
50 files changed
+97 -117

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ def part2(inp):
def main(input_file):
with open(input_file) as f:
entries = [x.rstrip() for x in f.readlines()]
entries = [x.rstrip() for x in f]
part1(entries)
part2(entries)
+2 -1
View File
@@ -1,5 +1,6 @@
from dataclasses import dataclass
from collections import deque
from dataclasses import dataclass
@dataclass
class BingoItem:
+1
View File
@@ -1,5 +1,6 @@
from collections import defaultdict
def main(infile):
points = defaultdict(int)
with open(infile) as f:
+2 -1
View File
@@ -1,4 +1,5 @@
from collections import defaultdict, Counter
from collections import Counter, defaultdict
def calculate_fishes(inp, days):
fishes = Counter(inp)
+1
View File
@@ -1,5 +1,6 @@
from collections import OrderedDict
def part1(crabs):
moves = OrderedDict()
for pos in range(min(crabs), max(crabs) + 1):