MCPcopy Create free account
hub / github.com/AxlLind/AdventOfCode / part1

Function part1

2018/src/12.py:11–14  ·  view source on GitHub ↗
(transitions: set[str], pots: set[int])

Source from the content-addressed store, hash-verified

9 return new_pots
10
11def part1(transitions: set[str], pots: set[int]) -> int:
12 for _ in range(20):
13 pots = step(transitions, pots)
14 return sum(pots)
15
16def part2(transitions: set[str], pots: set[int]) -> int:
17 seen = set()

Callers 1

mainFunction · 0.70

Calls 1

stepFunction · 0.70

Tested by

no test coverage detected