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.
You missed the "non-negative integers" requirement.
The reference solution is wrong here: it assumes "full caps" as in "more than 1 character from the beginning of a word is in upper case":
It is also wrong in the case a word has an upper case letter in the middle:
(And several more, I stopped trying to list out all of them)
I know this is old, but tbf, I prefer to use linq because of ease of use.
This comment is hidden because it contains spoiler information about the solution
Reraised as issue
Node 14. should be enabled
More sample tests on multiple special characters at end or start should be added
There should be 100 random tests at least
The description should specify what considers special characters
Description should also be reformatted to make example tests clearer
The random tests' expected and actual output should not be hidden
I like your style.
I wanna do things without linq but people here only use linq for "one liners".
It would be nice if we could see what is actually expected in the random tests, instead of just wildly guessing what to do with characters like '_' (which should be covered in the description tbh)
This comment is hidden because it contains spoiler information about the solution
Also, are you sure you need to hide the expected result in the random tests?
Please add all these to the descriptions.
_
and such are coming out of nowhere, and it's quite painful to get hit by something that you can't see coming ;-)In the description
It is your kata, so you have the right to decide the 'correct' output of these cases
Here are my opinion
Dr.
Apparently should be coverted toRd.
AaaaaB.Ccccc
->Ccccc.bAaaaa
, the origin uppercaseB
is replaced by a uppercase.
which is just a.
iOS
Apparently should be coverted tosOI
co-worker
Is-
part of a word? If so thenrekrow-oc
ItOUCH macOS XMLHttpRequest
->HcUOTI socAM TSEUqerPtthlmx
real_pythoner_use_snake_case
Is_
part of a word? If so thenesac_ekans_esu_renohtyp_laer
If both
-
,_
are parts of a word, then what else could be treat as part of a word, or what could not? This should be specified in the description.For random test. You could make it tougher if you like
eg.
I added Random tests. Could you explain the edge cases?
Needs Random Test.
And some edge cases
Smart! You made a loop of the function itself! I was already going through the documentation of C# looking where the hell the method 'Factorial' was. Only to find it being the method we worked in... haha
Loading more items...