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?
So you're saying if i pass 3 zeroes in the array[0,0,0], is this also a Hollow array? Can anyone share the test cases or should i post another question regarding it?
That's not true.
Print the input to debug your code. What is a hollow array is well defined, not a kata issue, closing.
This comment is hidden because it contains spoiler information about the solution
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
This comment is hidden because it contains spoiler information about the solution
Approved.
COBOL translation.
yap. i have this result and cant attempt the solution
Time: 465ms Passed: 206Failed: 1Exit Code: 1
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
What? No :D It's your code. Just replace every
print_r
withreturn
.can u edit my code with the return statement? Would really appreciate it. Thanks!
You are printing the result to console, when you should return it.
This comment is hidden because it contains spoiler information about the solution