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.
Add more random tests and better instructions, seems an okay one for 8kyu
Figured it out. Added a print statement at the top of my method to print out the input string, this then displays in the left hand panel after running the attempt.
My code passes all provided tests, but fails the random test. Is there anyway to find out what string is being passed in on the failed random test? Otherwise I don't know how to troubleshoot my code.
It looks like you're importing things that you shouldn't. Click reset and start over, or delete those imports from Solution window.
Nice one!
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.This comment is hidden because it contains spoiler information about the solution
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