Solución
solution.tsTypeScript
def ends_with_suffix(s: str, suffix: str) -> bool:
if not suffix:
return True
start_index = -len(suffix)
return s[start_index:] == suffix0respuestas
def ends_with_suffix(s: str, suffix: str) -> bool:
if not suffix:
return True
start_index = -len(suffix)
return s[start_index:] == suffixAún no hay respuestas
¡Sé el primero en responder!
Recuerda ser amable. Estás comentando la solución de otra persona. Comparte tu perspectiva de forma constructiva y respetuosa.