Groupon Interview Question: Write down code for finding n... | Glassdoor

Interview Question

Software Developer - Email Platform Interview San Jose, CA

Write down code for finding nth number in a fibonocci

  series.
Answer

Interview Answer

2 Answers

5

int getfibonocci(int n)
{
  int fb=1 prev=1;

  if(n==1 || n==2)
     return fb;
  else
  {
     for(int i =3;i

Interview Candidate on Jun 20, 2012
1

int getfibonocci(int n)
{
  int fb=1 prev=1;

  if(n==1 || n==2)
     return fb;
  else
  {
     for(int i =3;i

Vimalkumar on Nov 23, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.