Solución
solution.tsTypeScript
def is_fibonacci(n: int) -> bool:
# Tu código aquí
positive = 5 * n * n + 4
negative = 5 * n * n - 4
sqrt_1 = positive ** 0.5
sqrt_2 = negative ** 0.5
return sqrt_1 % 1 == 0 or sqrt_2 % 1 == 00respuestas