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.
the issue is with how you measure whether your code is correct. by measuring differently from the tests, you get a different outcome. if you measure the same way, you will find that your function misbehaves. for example:
You're printing something and returning something else. There is no issue with the kata.
There seems to be an issue with the Kata. All test and attempt fail even when the List (Python) is shown exactly as in the example. Tried casting to string and int as well but no way to fix it?
This comment is hidden because it contains spoiler information about the solution
I've never had to pay for using Codewars, but here's the kicker, you can try this same code out on your local machine! Just make a list with 10 million entries and have your function run over it. You can even have just the same number repeated that many times.
Sometimes the servers can be slow, but this problem expects a solution that makes even parsing 10 million results a cinch!
You can try again, I added failure messages for users who did not buy the paid subscription.
No, everyone can see failed test cases for free. Usually tests show them, but if they don't, everyone can use
print
to see them.No, codewars red people don't get anything like that. You can always just print the input to see what it is.
Time: 487ms Passed: 336Failed: 2Exit Code: 1
Let me guess. I only see the failed cases if i have a paid subscription?
Sorry, i used Codewars a year or more earlier and never had such problems. They obviously want you to pay for it.
If your solution times out, it means it does not pass all tests. It passes some tests, but not all of them, because it runs out of time.
Paid users have some additional features, but they do not get easier tests.
Great, i passed all test but cant finish the Kata, since i get the timeout by server. No idea how i could refactor any further to get the Kata done. Pay to win style? ;/
Mednoob, be a bit more kind.
This comment is hidden because it contains spoiler information about the solution