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.
Then don't do it. The object is to develop an algorithm on your own without the use of what is commonly available. If you don't like, there are plenty of others out there that can entertain your fancy. No sense in being a baby and crying over it.
If you read the last line of the description: "NOTE: reverse/reverse! have been disabled for String/Array and reverse() for JS. If you are chaining join after a reverse, you will get that error
If you read the last line of the description: "NOTE: reverse/reverse! have been disabled for String/Array and reverse() for JS.
"
Does your code work with the string "bobabob"?
The test is it failing on is asserting false on this string "No, no, no! Not in my house"
The last test case is testing against the string "No, no, no! Not in my house"
Changed error message to read "string containing invalid characters that should be ignored". Thanks for the feedback!
This tests against a palindrome if the correct characters are considered.
This comment is hidden because it contains spoiler information about the solution
Disabled reverse/reverse! in String and Array for ruby and reverse() in JS for a bit of added complexity
In addition to a few predefined tests, I've also added tests against a random string generator 50 times which are guaranteed to produce valid palindromes for JS and Ruby implementations to avoid 'lucky guesses' against the set tests.
Added a test that incorporates underscores now. Thanks for the feedback!