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.
When counting you ignore case, but when building the result string you don't.
Also,
given == ""
is not how you compare strings in C.In the random tests
arr2
is the expected solution,arr
is the result of yourDuplicateEncoder
function.!strcmp(arr, arr2)
is false if the two don't match.I just submitted my solution successfully, and also didn't see an obvious error in the tests.
If your problem persists, please post your solution here (and make sure to mark it as "having spoiler content").