• Post Reply Bookmark Topic Watch Topic
  • New Topic

Recursion: Fibonacci Number Question  RSS feed

 
Jud Matin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I use rFibNum and start the loop of trials with n= 40 and determine what value of n the program fails to complete. And how would I do this with memoizedFibonocc?

Thanks for the help


//Recursion: Fibonacci Number

 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by "fails to complete"? What DOES it do?
 
Jud Matin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what I'm asking is How do I use rFibNum and start the loop of trials with n= 40....that is all
 
Campbell Ritchie
Marshal
Posts: 56592
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please describe the algorithm you are using to calculate Fibonacci numbers, and how you are recording them in that array. Also write out that array (in part) before any Fibonacci numbers have been calculated.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!