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.
It's true, you're right. I was trying and I got confused. It was my mistake, I was not handling the input array correctly if the array was empty. Thanks.
Your own print statement is adding the extra
-
sign when you're printing to the console, that's why you're seeing double negatives.Your code also is not failing on that input, it's failing on a different one. One last thing, the input that you've listed looks like two inputs put together.
This comment is hidden because it contains spoiler information about the solution