Stage #rd2 - long running recursive function

err.. the very first test case to calculate fib(32) seems to be taking a really long time with the naive implementation I’ve been following. Is it really required to run it under 5 seconds?

Hey @abhirammkaushikm, sorry for the confusion!

Our tests currently only go up to fib(10). We’ve updated the instructions to reflect this more accurately in this PR.

Oh, perfect, thank you for the quick fix! I ended up optimizing the code path to handle fib(25) in 5 secs. Thanks again!

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.