7 ms·
You should try to implement the Fib with tail call and then test it. http://en.wikipedia.org/wiki/Tail_call http://en.wikipedia.org/wiki/Tail_call
by senthadev 12y ago
You should try to implement the Fib with tail call and then test it. http://en.wikipedia.org/wiki/Tail_call http://en.wikipedia.org/wiki/Tail_call
- dozzie 12y agoFirst he should implement it properly, remembering last two values at any time. His way is just plain outrageous.