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
It must have been 8 kyu
Importing inside a function is frowned upon.
Compilation of a regex is useful if you re-use it. Either define it outside the function (for reuse) or don't bother. Also, when you compile, you can use
smiley.match(el)
.I don't think thats the point of codewars lmao
clever
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
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?
Language?
This comment is hidden because it contains spoiler information about the solution
It seems you both have copy & pasted mine
This comment is hidden because it contains spoiler information about the solution
Loading more items...