Ad
  • Custom User Avatar

    The same issue :/
    text = "7rc4F3z1QVNWp9CN", duplicateCount(text) should equal 3. 2 is not equal to 3.

    Expected:3
    Actual:2

    Where is the third?

  • Custom User Avatar

    approved with fix.

  • Custom User Avatar

    The same trouble.

    "j6X2uPtwNluGqqVyAGVURCSwWBZHkWaIxzsamyEf2N4xjBMvo5I7icrVZpeRX5jqqrheXo4u6Gym7NSUkja0G" - expected 25, my result 27
    "k0D9FXVzR9Pua6RXoM9yRFc4osh0MQWNVOrxoQwXdlqkntbYmopB7utSm7FcPY3QtGthJN2gI" - expected 22, my resul 23
    "kwNYz9JLtOiFcEmHiINTKoOFHhbbDKnddG4Lqu09c2koyMoGbkbbhnXEMLKAxr9Sk" - expected 18, my result 17

  • Custom User Avatar

    Fixed. Thanks for reporting.

  • Custom User Avatar

    i have the same issue.

    in the ide of codewars, my code identifies n-1 duplicates in the string
    whereas I ve compiled it with the random case string in a .c on my terminal and the same code identifies n duplicates (as would be needed to pass the last random case).
    I m quite uneducated in the matter, my 2cents would be a compiler finesse.
    I ll keep learning.

  • Custom User Avatar

    Yes, you're right. Fixed it.