Y
Hacker News
new
|
ask
|
show
|
jobs
by
senthadev
4255 days ago
You should try to implement the Fib with tail call and then test it.
http://en.wikipedia.org/wiki/Tail_call
1 comments
dozzie
4255 days ago
First he should implement it properly, remembering last two values at any time. His way is just plain outrageous.
link
rjoshi
4255 days ago
Here the comparison is not about the algorithm, but language with similar recursion logic.
link
dozzie
4255 days ago
Then he should have used appropriate function to calculate, Ackermann for instance.
link