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.
Yes. You can print the input as I suggested so you can see with which ones your code fails.
About
[0,0,0]
:Is it clear now?
it is
what are you trying to achieve by getting the test cases ;)? if you are struggling to complete it, you can unlock solutions to see what other users have done
That's not true.
Print the input to debug your code. What is a hollow array is well defined, not a kata issue, closing.
firstly, this is not an issue, this is a question, so try to post with question tag
secondly, you could try using markdown syntax to make the code more usable for ppl trying to copy/paste your code.
you can read this in the meantime
What? No :D It's your code. Just replace every
print_r
withreturn
.You are printing the result to console, when you should return it.