Bloomberg interview question

Algorithm runtime analysis: What's the complexity of computing the fibonacci numbers?

Interview Answers

Anonymous

20 Mar 2014

O(1) using the closed formula

Anonymous

7 Mar 2016

Depends on implementation. For example naive implementation O(n).