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.
Interestingly there's no test for this. My code was essentially your code without
rev()
and it still passed.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Oh, I see, because of static $n.Thank you!
Print the evolution of $n and you will understand what happens from one test to the following. Hope that helps. They can't be successfull on your computer if one test is immediately following the previous one.
print:
Which test is failing?
This comment is hidden because it contains spoiler information about the solution