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.
The description did say for style points to create a hello world you would show to your friends. Well, to that I would just like to say that any code I write that I would want to show to friends or colleagues would do the absolute minimum required to get the job done. To me, this is it.
The random tests generate impossible cases like "Testing 81 people in line, at least 887 ahead, no more than 847 behind".
Missing Go example in the description.
I think the initial solution should use spaces for indentation. Although tabs are generally preferred in Go, the CW editor uses spaces, so if there are tabs initially in the solution, it becomes a mix of tabs and spaces.
Added GO translation
Nice kata. It's kind of funny, the harder part for me was figuring out how to tell if there were numbers in the string, not the actual acronym creation.
Yeah!It's now work.
Thanks!
In all three languages an empty string is to be returned if the empty string is the input itself, as it containes no character other than [A-Za-z ]; fixed the description to make it more clear :)
Thanks for the feed, sayfidz; actually Ruby's test code was not right; now it works fine and the description should be not ambigous anymore :)
Fixed, thanks!
You must
return
, notprint
values :)I agree on the first part, but as a tranlator I felt obliged to respect the original author's will to keep it a tad easier and thus return a string instead of an error. No big deal anyway, if you ask me.
Imho handling extra spaces was not an issue, but I edited the code a bit so that now the random strings are generated without leading or trailing spaces.
Thanks for your feed :)
It worked like a charm to me: maybe the servers were down for a moment?
Try again and let me know :)
Sorry for the mishap, I have improved the description and added an example: if the string contains any character which is NOT alphabetic (in the above example there is a 0), then you return "Not letters" :)
I struggle a bit with my python solution, all of the standard tests are passed but i always get an error on the random tests.
Testing for 'UgUSkt0KiVOSezr'
It should work for random inputs too: 'U' should equal 'Not letters'
'U' is the right answer here, isn't it?