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.
I have edited the kata to reflect your suggestions. Thank you very much. @JohanWiltink, donaldsebleung. :)
@myjinxin2015, actually... I do understand some Chinese...
你好,我叫aoikage,我喜欢编程!
if I always return array and ignore empty strings, [
should return '' when given '' as argument
] comes up,but if I consider empty strings and return '' when given '' as argument, [
Output is an array - Expected: true, instead got: false
] comes up.Please fix this...
Note that this does not actually check whether a word is a palindrome, it only check if the first character is the same as the last character.
Actual Palindrome: hannah,
Fake Palindrome that pass this test: habch
This comment is hidden because it contains spoiler information about the solution