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.
a accumulates the array item values by adding them. That's the first +. The second + converts the array item b from a string into a number so it can be added to the accumulator a.
No it doesn't. It returns the correct output, ie ['', 0]
It stands for temporary.
Great solution.
I have reworded the description a bit for more clarity.
A couple of things:
(You need to find two characters that are equally spaced from the ends of the string that are different. And vozvernut the number of that letters, by removing which we get the palindrome).
- what result is expected if the string is a palindrome after deleting any letter?
If as a result of deleting any letter from the string, the string is no longer a palindrome, the output should be 0.
Great Kata, it really helped me better understand how to use and structure classes in Javascript. So thank you.
You need to use opening and closing quotation marks between the parentheses. So word.split('') or word.split("").
Nice clean solution.
You don't. It was an oversight.
Good job.
This comment is hidden because it contains spoiler information about the solution
Really clever solution. Well done.
Great kata. Quite hard though. 6kyu in my opinion.
Great Kata! Looking at the kata stats though, it looks like the average rating was 6kyu, so I am just wondering why it is only a 7kyu? (It certainly felt like a 6kyu to me! (Javascript)).
Superb solution.
Loading more items...