Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
simple max solution in Clear category for Crossed Words by juestr
def crossed_words(hor: str, ver: str) -> tuple[int, int]:
return max(
((hor.rindex(c) + 1, ver.rindex(c) + 1) for c in set(hor) & set(ver)),
default = (-1, -1)
)
June 22, 2024
Comments: