maximum call stack size exceeded | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

maximum call stack size exceeded

there was an error in my code : maximum call stack size exceeded. Help https://code.sololearn.com/W36ZBo3H0A21/?ref=app

14th Sep 2020, 3:51 PM
Aparty
Aparty - avatar
4 Answers
+ 2
LOID GAME Take a look at this modified code. Hopefully it will make sense. https://code.sololearn.com/WcE8MZ8a80A6/?ref=app
14th Sep 2020, 4:11 PM
Russ
Russ - avatar
+ 1
happens if recursion has no exit. why do you recall your function?
14th Sep 2020, 3:59 PM
Oma Falk
Oma Falk - avatar
+ 1
Thank you very much, I'm not ready for such an error
14th Sep 2020, 4:17 PM
Aparty
Aparty - avatar
0
the function is called until the very first condition is met
14th Sep 2020, 4:08 PM
Aparty
Aparty - avatar