Problem 292. Infernal Recursion
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
@bmtran (Bryant Tran)
on 9 Feb 2012
is there a story as to why this is "infernal"?
Matt Fig
on 9 Feb 2012
I hate recursion, so it is all infernal to me! Iteration is the way to go...
David Young
on 29 Feb 2012
Test suite could helpfully include n=1 and n=2 tests. I thought that it needed extra complexity to handle these, but @bmtran's top solution shows it doesn't.
Aurelien Queffurust
on 12 Jun 2012
I spend a lot of time to get the correct R from the example. The issue is that you say k = 5/9 instead of 4/9 . Just a typo to correct . Thanks
Solution Comments
Show commentsProblem Recent Solvers76
Suggested Problems
-
Is my wife right? Now with even more wrong husband
1307 Solvers
-
439 Solvers
-
find the roots of a quadratic equation
213 Solvers
-
431 Solvers
-
Create an index-powered vector
579 Solvers
More from this Author6
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!