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.
Paste your code here and mark it as a spoiler. I'll check it out and will try to help you ;)
Getting the same thing, there must be an issue with it.
Hi,
can you share your solution here please? And don't forget to mark it as spoiler.
Thanks.
hm same problem and I am checking for every version of empty or null. I can't check length because it throws an error that says you can't check length for null. I know the code works. it solves 114 of the random cases. There is just some way that I am throwing an error on a single testcase for submit despite the fact that I am checking for every variation there is on an empty array. I know this is just some stupid oversight on my part but I can imagine what it is.
I agree with upper comment, check both: null and length == 0
The javascript version has been solved 225 times without any problems.
So I think, there is no issue in the kata.
Do you check for both: null and length == 0 ?