Solución
solution.tsTypeScript
export function isPerfectSquare(n: number): boolean {
// Escribe tu solución aquí
if (n >= 0) {
let i = 0
while (i * i < n) {
i++
}
return i * i === n;
} return false
}0respuestas
export function isPerfectSquare(n: number): boolean {
// Escribe tu solución aquí
if (n >= 0) {
let i = 0
while (i * i < n) {
i++
}
return i * i === n;
} return false
}Aún no hay respuestas
¡Sé el primero en responder!
Recuerda ser amable. Estás comentando la solución de otra persona. Comparte tu perspectiva de forma constructiva y respetuosa.