I'm thinking of problem to find the nth Fibonacci number and I see various solutions such as recursive, dynamic programming, golden ratio and etc to name a few. I am wondering isn't calculating nth Fibonacci number sequentially a better solution than these? Am I missing something?
Either recursively or dynamic programming, we have to traverse the path from the 1st element in Fibonacci series to the nth element. If we use the golden ratio, it has an exponentially growing time complexity. Instead, if we iteratively calculate the nth Fibonacci number, we can achieve this in O(n) operations which seem to be better than other methods.