Solución
solution.tsTypeScript
def starts_with(text: str, prefix: str) -> bool:
if len(prefix) > len(text):
return False
for i in range(len(prefix)):
if text[i] != prefix[i]:
return False
return True0respuestas