Need help with Q-Sequence | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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