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 comment is hidden because it contains spoiler information about the solution
The longest element in a2 has 16 characters ("cccooommaaqqoxii") and the shortest element in a1 has 3 characters ("oox"). Therefore 16 - 3 = 13.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I thought the same too, then I re-read: "...any digit 5 AND above with..."
it's not "needed", but it's a better design (less storage, and no "duplicated data" stored). As usual, it's a trade off, ofc: no redundant data, but more "costy" since it needs some computations to get the actual data.
At least read the kata's title, it is count of positives, not sum of positives.
Each kata on this site has a "Details" page where you can read about the I/O specs.
This comment is hidden because it contains spoiler information about the solution