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.
str
turns the integer into a string. It's the difference between the number55
and the string"55"
. To check whether the string"5"
is within the number, you first have to convert the number to a string by usingstr
.This comment is hidden because it contains spoiler information about the solution
That's why this kata is easy, and this one is not: https://www.codewars.com/kata/621f89cc94d4e3001bb99ef4
How can you solve it without creating an array?
This comment is hidden because it contains spoiler information about the solution