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.
Actually nope, as here there's a remainder operator used, and not the division one.
So, if a number is even, its remainder divided by two is zero, thus it should go to the "else"(after : here) part.
that's Okey) just a small correction)
lol. I also completley forgot about that. I guess the test cases ignored that. but you could still implement it
Nice
This comment is hidden because it contains spoiler information about the solution
Directly from the description:
beast and dish may contain hyphens and spaces, but these will not appear at the beginning or end of the string.
So clean omg good job 🔥
But where is the logic for handling the '-' and ' ' at the first index and last index of each argument?
I always forget that you don’t need if statement for boolean values like this one, so clean
Strings have elements, arrays have elements. Certain iteration methods like map cant iterate a string without transforming it into an array. Certain ones can, like a for loop. You can access elements of a string the same way you can an array str[0]...
RegEx ftw!
You can actually
It's iterable
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...