Write a dynamic programming version of computing Fibonacci for n. — def fib(n): fibValues = [0,1] for i in range(2, n+1): fibValues.append(fibValues[i-1] + fibValues[i-2]) return fibValues[n]
G
1.2K
Google Interview
This flashcard deck made by jwasham contains knowledge about google interview. For more details, please follow https://github.com/jwasham/google-interview-university