Bloomberg Interview Question

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

Interview Answers

Anonymous

Mar 20, 2014

O(1) using the closed formula

Anonymous

Mar 7, 2016

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