in reply to Re^5: How am i doing?
in thread How am i doing?
The code is written to stop when the result exceeds 4 million.
By my estimation that's a recursion level below 50. Nowhere near the technical warning level of 100 and certainly not a depth of 4 million.²
And this code does neither suffer of the problems of naive Fibonacci implementations, because it does only fork one recursive call, not two. (That's why it's passing so called @frames with the last two results and cleverly avoids the need of full memoization)
But I must admit that I haven't tested the code yet.¹ And I'm not sure what the count() does, (probably estimating for which input 4e6 is exceeded) °
But honestly it doesn't look like you know what you are talking about.
You sound like a flat earther criticizing a moon rocket because it doesn't have sails.
And I don't want to waist my breath explaining to you that there is no wind up there. Especially because you will claim then, that I've proven your flat earth theory
°) that's the corresponding Euler Problem #2
¹) done -> Re: How am i doing?
²) actually it stops at Fib(35)
And FWIW I down-voted you for using those colorful markups.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: How am i doing?
by GrandFather (Saint) on Jul 29, 2025 at 21:35 UTC | |
by LanX (Saint) on Jul 30, 2025 at 15:12 UTC |