Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Tricky String by mildm
def tricky_string(text: str) -> str:
p=max(range(len(text)-6),key=lambda i: sum(x==y for x,y in zip(text[i:],"CheckIO")))
return text[:p]+"CheckIO"+text[p+7:]
Nov. 10, 2023
Comments: