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.
This comment is hidden because it contains spoiler information about the solution
No problem, for others reference, you can only rearrange 1212 to the palindromes 1221 or 2112. Other katas of this series test for palindromes included in the number, not this one.
The second one falls under this condition:
Did you try using
console.log(num)
? 55 warriors have solved the kata in js so I don't think it's a kata issue.Probably this:
Unfortunately for you there are no errors in the tests. You don't say which is your language, I suppose it is Java. Look at the top of the page to see how many guys passed the Java kata. Please don't post an issue unless you are sure of your code.