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.
Nim translation
Oh okay, I understand thank you :)
The input given can be
null
, so you should explicitly handle that first before filtering the arrayThis comment is hidden because it contains spoiler information about the solution
Issue in using Racket: The problem description is misleading. In testcases, the output for an empty list is (0, 0) not an empty list.
lol my bad, lil curveball in the instructions!! good kata!!
Solved. Closing.
The tests are fine, please read at least the title again, your code is doing a different thing, fix it.
broken test cases!!
This comment is hidden because it contains spoiler information about the solution
My fault. Thank you for this.
From the description:
My codes passed the test but when attempting to submit, it fails. Why?
Enabled in this fork
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.
Loading more items...