🌍
Pinned Loading
-
aoc2023-01
aoc2023-01 1import itertools as it, operator as op, re
2from functools import reduce
3d = {"one":"1","two":"2","three":"3","four":"4","five":"5","six":"6","seven":"7","eight":"8","nine":"9"}
4INPUT1 = """..."""
5find_target_indices = lambda word, target: reduce(lambda acc, itm: acc | {itm} if word[itm:itm+len(target)] == target else acc, range(len(word)),set())
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.