Interview Question

Business Development Engineer Interview Palo Alto, CA

Generate a fibanocci sequence: dach number is the sum of

  the THREE previous numbers.
Answer

Interview Answer

1 Answer

0

It can be done recursively or iteratively. Iterative approach is more efficient because it avoids repeated calculations when computing successive fibonacci numbers.

Interview Candidate on Mar 18, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.