Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Congratz, and next time, please take the advice at the second post, I'm tired now ;)
Just to make it clearer, I renamed the test in Sample test to sampleTests.
This comment is hidden because it contains spoiler information about the solution
Properly solve the kata or forfeit it, see the testing suite, realize the basicTests in the sample tests are one thing and the basicTests on Attempt are different (already told you this). I feel like talking to a wall here, seriously.
Those 3 are the sample tests and always worked with your code with the import. When you click attempt, there are more tests than only those 3 in the basicTests, that's why I told you to print the input.
No, because it's a problem with your code, not with the kata:
The basic tests that don't work here, won't work in your IDE either (because your code can't handle them), maybe you're confusing the logs or something.
No idea, as I said, once I modified your code to handle cases < 3 it worked for me. Why don't you do that and paste your current code?
P.D.: in basic tests there are tests with n < 3 too. And there is no test with n == 3 there.
Please, read the description again:
And print the input if you don't believe me. N is any integer equal or above 0, the instructions say this clearly, your code is wrong (here or in your IDE for n < 3).
I've copied and pasted your code and it only worked after handling the cases I told you, have you tried your code with those values? You used recursion and if n is less than 3 your recursion never ends (that's the stack overflow error about). It's not a problem of environment, it's a problem with your code's logic.
Your code is not handling that right, and there is another problem too, test your code with values of n < 3.
Not a kata issue, your code is missing some import. Next time mark your post as having spoiler content please.