Solución
solution.tsTypeScript
def ends_with_suffix(s: str, suffix: str) -> bool:
# Escribe tu solución aquí
if suffix == '' :
return True
if len(suffix) > len(s):
return False
if suffix == s[-len(suffix):]:
return True
else:
return False0respuestas