0

Need help with Q-Sequence

So I'm trying to solve the Q-Sequence code coach and my code doesn't quite work. Can somebody explain why some numbers result in "No output." https://code.sololearn.com/cWDmP4NFAqbP/?ref=app

5th Oct 2020, 6:54 PM
Daniel Cooper
Daniel Cooper - avatar
2 Answers
+ 3
To many unnecessary calculations. The function is called with the same argument many times, resulting in the same recursive calculations to compute over and over: https://www.sololearn.com/discuss/2509780/?ref=app
5th Oct 2020, 7:09 PM
Kevin ★
+ 1
Thanks Kevin ★ I figured it out
5th Oct 2020, 10:30 PM
Daniel Cooper
Daniel Cooper - avatar