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.
Thanks a lot! I didn't understand whats a problem, your comment helped me!
Thank u. I spent a lot of time solving this problem
Just a nice, simple method!
@nmoadev You should add it to the description too.
u jealous? lol
1 liners don't make you a better programmer.
Yes. Javascript allows you to treat strings as character arrays, so
str[0]
refers to the first character ofstr
.The only difference between accessing it like an array and using
charAt
(or any of the other string methods...slice
,substr
, orsubstring
) is that if the index refers to a position outside the string's length,str[i]
will result in the valueundefined
, while those other methods would return an empty string instead.Is this how str[0] works here? for example: abc
"abc"
(reverse(bc) + "a")
(reverse(c) + "b") + "a")
("c" + "b" + "a")
"cba"
Nevermind. I see the kata has an error within the tests regarding, JS and CoffeeScript.
Works fine when submitting.
This comment is hidden because it contains spoiler information about the solution
Why should that result in an infinite loop?
I'm having a hard time figuring out how this is working without resulting in an infinite loop
Trying C# Broken Greetings, very excited you guys are supporting it. Unfortunately all I am getting is Submission Timed Out :(
Mind Blown....
Good suggestion. I'll fix that up.
Loading more items...