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.
I like how we needed to return an empty string if given an empty string... As it was not mentioned in the description, unless this is a known step in all challenges that I did not know before today. Maybe it's because I used an imperative approach? Sorry I'm still learning.
This comment is hidden because it contains spoiler information about the solution
true
Lol, I tried my best to have the shortest answer possible and I almost went with this solution...
sorry but... thisIsCamelCase, ThisIsPascalCase, this_is_snake_case, this-is-kebab-case
funny kata!
CoffeeScript translation
The test method does not show the input.
OP solved it, closing
Your code will fail for cases where there are multiple spaces adjacent to each other like
nurpsh crdex neixdmzvc wxtwztr cbp
because splitting them would result in["nurpsh", "crdex", "neixdmzvc", "wxtwztr", "", "cbp"]
and trying to access an empty string is erroneous.Your code will fail for cases where there are multiple spaces adjacent to each other like
nurpsh crdex neixdmzvc wxtwztr cbp
because splitting them would result in["nurpsh", "crdex", "neixdmzvc", "wxtwztr", "", "cbp"]
and trying to access an empty string is erroneous.the method does not even exist in ruby, theres only a class named string and when i made the camel case method it legit throws erroe.
This comment is hidden because it contains spoiler information about the solution
I don't get it, if generally is ok, but in one of the languages the convention is different, why the kata should be renamed affecting all languages? I'd have probably used PascalCase from the beginning, but changing the name of the kata and the function's name in every language isn't free. You need to make all tests backward compatible to not render all solutions invalid.
Loading more items...