Ad
  • Custom User Avatar

    Decyphering description: 1 kyu
    Solving kata: 7-8 kyu

  • Custom User Avatar

    Read the second issue posted by Voile below where I've already made an attempt to reword this kata's description.

  • Custom User Avatar

    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?!?!

  • Custom User Avatar

    As confusing as it is, you have to count the number of l, o, v, e and s (case insensitive) in both names (together) and that's the starting list.
    So I think:

    Then count the number of occurrences of the letters in "Loves" case insensitive with each name as follows:

    Should be:

    Then count the number of occurrences of the letters in "Loves" case insensitive in both names (together) as follows:

    Or better.

  • Custom User Avatar

    Hey there! I think your isPrime function wrongly calculates 2 as not being prime. This means given List(1, 1) the minimumNumber function will return 1, instead of 0.

  • Custom User Avatar

    Needs random tests

  • Custom User Avatar

    Description is very unclear. e.g

    John Doe
    Loves
    Jane Doe
    
    Then count the number of occurrences of the letters in "Loves" case insensitive with each name as follows:
    0, 3, 0, 3, 0
    

    Isn't it 1, 2, 0, 1, 2 or something?

  • Custom User Avatar

    This is true but not for the given test cases :)

  • Custom User Avatar

    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.

  • Custom User Avatar

    Works now! :-)

  • Custom User Avatar

    Sorry I screwed up the kata :(, fixed it now though. Your solution should be correct if the test cases/solution was done correctly!

  • Custom User Avatar

    OK, I'm passing everything but this one, but can't figure out what would be wrong with it:

     Han Solo Leia Organa
    [2, 3, 0, 1, 1]
    [5, 3, 1, 2]
    [8, 4, 3]
    [1, 2, 7]
    [3, 9]
    39%
    ✘ Value is not what was expected 
    

    Usually I just wait for other people to post questions like this. :-)