Solución
solution.tsTypeScript
export function isCapicua(n: number): boolean {
// Escribe tu solución aquí
if(n<0) return false
const str = n.toString();
const len = str.length;
for (let i = 0; i < len / 2; i++) {
if (str[i] !== str[len - 1 - i]) {
return false;
}
}
return true;
}0respuestas