Solución
solution.tsTypeScript
export function isPalindrome(text: string): boolean {
// Escribe tu solución aquí
text = text.toLowerCase();
let inicio: number = 0;
let final: number = text.length - 1;
while(inicio < final){
if(text[inicio] !== text[final]) return false;
inicio++;
final--;
}
return true;
}0respuestas