This question evaluates a candidate's algorithmic problem-solving skills, specifically understanding of recurrence relations, recursion versus iterative implementations, dynamic programming trade-offs, and numerical limits when computing sequence values.
Write a function that returns the n-th Fibonacci number.
The Fibonacci sequence is defined as:
n
(assume
n >= 0
).
F(n)
.
n
.