+ 1

How much recursion? 😁

How many times can recursion invoke itself? Example, in my code recursion call itself 10 000. But after 1000 error appear.. https://code.sololearn.com/cG2MPoYGK6f4/?ref=app What is maximum recursion depth?

23rd Jun 2020, 4:32 AM
Petr
4 odpowiedzi
+ 2
It's not limited by 'default', is just limited by given runtime or memory.
23rd Jun 2020, 5:03 AM
Sandra Meyer
Sandra Meyer - avatar
+ 1
23rd Jun 2020, 5:13 AM
Petr
+ 1
Petr hey bro if u want check how many time recursion invoke u see base value and you'r base value is x==0 mean recursion stop when x is 0 then recusrsion invoke 10000 time when it goes 0 it will return 10000
23rd Jun 2020, 6:23 AM
Noman
Noman - avatar
23rd Jun 2020, 8:24 AM
Petr