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.
Decyphering description: 1 kyu
Solving kata: 7-8 kyu
Read the second issue posted by Voile below where I've already made an attempt to reword this kata's description.
I've re-read the problem description more than a dozen times, and I've even passed it through Google Translate with no luck.
Simply....what is the program supposed to do?!?!
As confusing as it is, you have to count the number of
l
,o
,v
,e
ands
(case insensitive) in both names (together) and that's the starting list.So I think:
Should be:
Or better.
Hey there! I think your
isPrime
function wrongly calculates 2 as not being prime. This means givenList(1, 1)
theminimumNumber
function will return 1, instead of 0.Needs random tests
Description is very unclear. e.g
Isn't it
1, 2, 0, 1, 2
or something?This is true but not for the given test cases :)
For some pairs of names, the adding process will not terminate.
For example if LLLLLLLLLOOOOOOOOOVVVVVVVVV loves EEEEEEEEESSSSSSSSS, the counting will be [9, 9, 9, 9, 9].
Try to adding the pairs:
The first step gives [1, 8, 1, 8, 1, 8, 1, 8],
The second step gives [9, 9, 9, 9, 9, 9, 9] ...
Therefore a longer and longer [1, 8, ...] serial and [9, ...] serial will be generated.
Works now! :-)
Sorry I screwed up the kata :(, fixed it now though. Your solution should be correct if the test cases/solution was done correctly!
OK, I'm passing everything but this one, but can't figure out what would be wrong with it:
Usually I just wait for other people to post questions like this. :-)