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.
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
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.
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]...
You can actually
It's iterable
This comment is hidden because it contains spoiler information about the solution
In fact, you can. Read the docs.
This comment is hidden because it contains spoiler information about the solution
Damn, I solved the logic part in my head, but I couldn't implement it and put it into code like this in time.
Yeah, that looks a lot more elegant than my solution for sure.. lol.
This comment is hidden because it contains spoiler information about the solution
Loading more items...