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.
This is not ambiguous ( description might have changed in the past
7
(!) years ).Empty / singleton lists do not have a penultimate element, so there can be no tests with that ( and there aren't ). This might be specified, but if it hasn't been addressed in seven years, let's just not.
Closing.
Someone's fixed it.
It's not just the fact that there's no mention of case sensitivity. It's that the kata description clearly says that all inputs will be lower case letters:
The input string will only consist of lower case letters and/or spaces.
The first test case (actually, the sample one as well) has an upper case letter which must be counted.
IMHO, the kata description needs to be rewritten. Sure, a quick glance at the sample case shows what's going on, but to be neat and proper it should mention that in the description.
This comment is hidden because it contains spoiler information about the solution
Translation into Ruby submitted :)
They seem all lowercase to me and you could fix it with a small fix in most languages.
+1, on python as well
It's ambigusous if it's second to last in the current string (ie l[-2] or 2nd biggest value (sorted(l)[-2]).
On top of that, behaviour is unclear for empty/singleton lists.
This comment is hidden because it contains spoiler information about the solution