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

Function main

2018/src/08.py:24–26  ·  view source on GitHub ↗
(indata: str)

Source from the content-addressed store, hash-verified

22
23@aoc.main('08')
24def main(indata: str) -> tuple[int,int]:
25 _,e = parse_tree([int(i) for i in indata.split(' ')],0)
26 return metadata_sum(e), node_value(e)
27
28if __name__ == "__main__":
29 main()

Callers 1

08.pyFile · 0.70

Calls 3

parse_treeFunction · 0.85
metadata_sumFunction · 0.85
node_valueFunction · 0.85

Tested by

no test coverage detected