Solución
solution.tsTypeScript
def ends_with_suffix(s: str, suffix: str) -> bool:
# Escribe tu solución aquí
return not suffix or s[-len(suffix):] == suffix0respuestas
def ends_with_suffix(s: str, suffix: str) -> bool:
# Escribe tu solución aquí
return not suffix or s[-len(suffix):] == 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.