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.
It's included in the description (since some time?)
This was a very fun Kata to solve, thanks for creating it!
Approved.
Can it do " A,"?
Python translation:
https://www.codewars.com/kumite/60eaf5a753673e00266bf76f?sel=60eaf5a753673e00266bf76f
Dang... last discussion on this kata was 3 years ago... nice kata btw
Not a kata suggestion~~
Nice observation skills and explanation. I Thank You for your time.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
If you look at line four of the 'for example' section in the description...
"A," = 0B10100000 = 160 (a + comma)
you'll notice that it is inconsistent. "(a + comma)" should be "(A + comma)". But anyway, fun kata! Thanks.
Creative Kata idea, but perhaps you could state explicitly in the description that for the punctuation (if not null), a whitespace always goes before the letter itself and all other punctuation (i.e. comma and period) come after the letter? I know there are code examples in the description that demonstrate this; however, since it was rather counter-intuitive to me that different punctuation were to be appended in a different order, I initially overlooked it and only found out after failing the example test and rereading the description after that, cheers :)
Fixed
Input argument type is a mess: initial code has
const unsigned char &n
, description saysstd::vector
, the actual tests expectstd::vector<unsigned char>
but the example tests accept things likestd::vector<int>
too.The starting code is odd, it's very C-like for a C++ kata. It doesn't work, either. And it's plain wrong - a parameter that should be some sort of range is instead a char reference!? Thankfully, that's no big deal...
Loading more items...