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've edited the description to make this clear just in case.
1321 doesn't contain 121. Nowhere in the description does it say to permutate the input.
I don't understand, 1321 also contains palindrome(121) and the test should return False.
In my solution,I have to get all substring until find the palindrome.
So...
It is inefficient.
And that's why I felt amazing.
Your solutions are better~
Thank you!
Crystal translation submitted
because it contains a palindrome :
121
! ;)This may be a stupid question - how is 1215 a palindrome? I do not understand this. Is it because 1215 = 5121 is a palindrome?