Content
Interviewer: "Write a function to get the nth Fibonacci number" My solution: const fib n Math. floor(1Math.sqrt (5) (Math. pow((1 Math. sqrt (5)) 2, -Math.pow ( (1 – Math. sqrt (5)) 2, n) )) The interviewer:
Interviewer: "Write a function to get the nth Fibonacci number" My solution: const fib n Math. floor(1Math.sqrt (5) (Math. pow((1 Math. sqrt (5)) 2, -Math.pow ( (1 – Math. sqrt (5)) 2, n) )) The interviewer: