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.
Haha that is some readable code.
Good one :D
the name <3
We need to return a string without the first and last character. It does not matter how we solve this problem (create a new string or delete characters from a local variable).
ps: Sorry for my English. I am not a native speaker.
But you actually didn't "remove" the characters.
yeah right
freakin good nice 👌
I saw a pattern pretty much immediately, but i also started with more moving parts. :P Probably took 15-30 minutes farting around with concatenation before i saw a less clunky way.
I tried three approaches. And only then it dawned on me !!! Great kata! The main thing is not surrender!
Nice Kata. Thinking linear solution was fun. For someone looking for a little hint, do not try to look every single splitted word.
204
(or even230
with a small change to code) elements of the array will never be accessed...Loved this Kata. Thx to the creator, one of my favourites. :)
pretty clever with the array.
Just of curiosity how long did it take you to see the pattern?
I think the thing is that you forgot the case where string ends with a space. The result looks right but it's missing a space I had the same problem. I don't like this edge case it breaks the beauty of the code. But whatever
Loading more items...