Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple | lstrip instead of regex solution in Clear category for Long Pressed by Wartem
def long_pressed(text: str, typed: str) -> bool:
text, typed = text.lower(), typed.lower()
if text == typed:
return False
while(text):
typed = typed.lstrip(text[0])
text = text[1:]
return not typed
Sept. 14, 2022
Comments: