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.
Welcome to Codewars!
1.) The input parameter
num
is a number so you can't use split on it. You need to cast it to a string first.2.) You must return the final answer, not print (puts) it to the console. You need to return the answer as an integer. Input of 3212 must get an output of 9414 only by returning it.
3.) You must return your answer as a number, not a string.
Which programming language?