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 didn't at once guess to combine single and double quotation marks.
What's the point of the r? I did basically the same thing except without the r, and it worked fine.
This is beautiful
and i thought my solution was clean...
craziest :O
Very unique
In my opinion the min and max functions are overkill. But interesting solution.
this solution is so elegant
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?
\d+ and [0-9]+ are patters, \d+ is just a more clean and good
I've hit submit too early. No need for the first two pieces of the 'and' in the answer XD
Oh, thank you. It's really nice solution.
Loading more items...