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.
Your current solution still fails for cases that contain numeric characters (
0-9
) because they are considered valid characters but your code discards themError with this crappy message was displayed when a solution used
reverse
, which was disallowed by the kata. I removed the restriction, and you can now use any function you like. This error should not appear anymore. Can you try again and see if you still receive the message? If so, in what language?Read this: https://docs.codewars.com/training/troubleshooting/#print-input and use
console.log()
instead ofprint()
for javascript.For some reason this kata seems to attract the largest number of people convinced that their solution is correct, and that the kata is wrong...
@ckc2007 - please read all the discussions below in this section: there are hundreds of comments below yours where people have posted the exact same thing as you and helpful users have pointed out that the tests are correct.
Whatever you are doing, it contains a mistake - the test solutions have been checked repeatedly for over 7 (!) years.
On the 1-in-1,000,000 chance you have found something truly wrong, then you should paste your specific test input + which language you are working in, rather than making a generic comment that no-one can help you with.