+ 1
Cool use of recursion, but need to be careful.
The way these tests are, will go infinite if not a non-negative integer. Luckily it looks like SoloLearn will stop if it seems to be taking too long. I'm not sure about other Python interpreters.
1 Respuesta
+ 3
That's indeed correct. It seems like SoloLearn times out over time based on the server information.
Careful though, for web codes such as JS recursion will go on infinitely and make you have to restart SoloLearn.