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.
You are right. I don't understand instructions in 100%. I correct solution.
I've added a extra testcase for even length words.
Thanks for the feedback.
The soloution from user bryjamus managed to pass. So test cases like "abca" are missing. Where first and last letter are the same but is still not a palindrome.
public static bool IsPalindrome(string w)
{
var arr = w.ToLower().ToArray().Where(x=>Char.IsLetter(x));
return arr.First() == arr.Last();
}
That will return wrong answer if the first and letter charater are the same, and the letters after that is not a palindrome.
Like "abca" return true where it should return false.