how efficient is it to implement fibonacci of a nth number using recursion.
Anonymous
It wont be the best solution using recursion. Need to use iterative approach using 3 variables. SC: o(n), TC = o(1)
Check out your Company Bowl for anonymous work chats.