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.
The same issue :/
text = "7rc4F3z1QVNWp9CN", duplicateCount(text) should equal 3. 2 is not equal to 3.
Expected:3
Actual:2
Where is the third?
approved with fix.
The same trouble.
"j6X2uPtwNluGqqVyAGVURCSwWBZHkWaIxzsamyEf2N4xjBMvo5I7icrVZpeRX5jqqrheXo4u6Gym7NSUkja0G" - expected 25, my result 27
"k0D9FXVzR9Pua6RXoM9yRFc4osh0MQWNVOrxoQwXdlqkntbYmopB7utSm7FcPY3QtGthJN2gI" - expected 22, my resul 23
"kwNYz9JLtOiFcEmHiINTKoOFHhbbDKnddG4Lqu09c2koyMoGbkbbhnXEMLKAxr9Sk" - expected 18, my result 17
Fixed. Thanks for reporting.
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.
Yes, you're right. Fixed it.