(points: list[list[int]])
| 18 | return Counter(closest.values()).most_common(1)[0][1] |
| 19 | |
| 20 | def part2(points: list[list[int]]) -> int: |
| 21 | ans = 0 |
| 22 | for x,y in bounding_box(points): |
| 23 | total_dist = sum(abs(a-x) + abs(b-y) for a,b in points) |
| 24 | ans += total_dist < 10000 |
| 25 | return ans |
| 26 | |
| 27 | @aoc.main('06') |
| 28 | def main(indata: str): |
no test coverage detected