Solución
solution.tsTypeScript
public class Solution {
public boolean startsWith(String text, String prefix) {
// Escribe tu solución aquí
if (prefix.length() > text.length()) return false;
for (int i = 0; i < prefix.length(); i++) {
if (text.charAt(i) != prefix.charAt(i)) return false;
}
return true;
}
}0respuestas