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.
Same! Add in some Infinity, NaN, 'More please' etc. into the tests as well to get some basic validation and a bit of fun
PascalCase not camelCase
When will people learn?
I'm amazed to see so few approaches like this... memoization was my first thought!
This comment is hidden because it contains spoiler information about the solution
Case
This would be nice if the kata description were more complete
Looking over the solutions, almost none are approaching production quality. You don't need regexes or some byzantine logic. The time available is easily adequate as your select should complete in << 1 second.
Real incoming data has Mr, Dr etc. in (as this has), with all sorts of separators from commas to slashes. Some at work includes 'MRS DR PROF' and such, sometimes as a prefix, sometimes as a suffix.
I like ur solution, need to keep in mind it
+1 to "too simple" (python)
There is a concept of lower camel case, and of upper camel case. Upper camel case is also known as Pascal case, but not exclusively known as Pascal case. Your own article that you linked indicates this in the top section of the document. This kata doesn't not specificy upper or lower, it just says "camel case", but specifically states that it should be upper if the original source was capitalized, and lower in all other cases.
From your own wikipedia link. Your absolutist opinion that "camel case" is and only is the lower camel variant is just wrong.
Also from your article. You clearly are one of these people, but as you can see here, its not a universal opinion.
The tricky, and beautiful, task here is to figure out that this is the case.
Nicely written kata. It feels like it could be built upon to make a higher tier kata with multiple rolls / battles quite easily.
If you can find some examples that would result in floating point errors, that would be a good test, many of the current solutions would fail such a test.
https://0.30000000000000004.com/
See also Pascal Case, which is where you're confused. Stop confusing new coders with this and leaving everyone else having to pick up after you.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...