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.
thanks guys, I solved it but without an elegant solution xD. Happy coding y'all, appreciate it
You could use
count()
if you do it the smart way. Using some other thing. Other solutions don't use count at all.Read this: https://docs.codewars.com/training/troubleshooting that's a problem with your code, it's not fast enough. Not a kata issue.
This comment is hidden because it contains spoiler information about the solution
this means your code returned 0 when the answer is 1
it is showing expected 0 t0 1 error