https://www.codingame.com/training/easy/unique-prefixes
Send your feedback or ask for help here!
Created by @otpv,validated by @BigBart,@ItsAFeature and @Samsonov.
If you have any issues, feel free to ping them.
https://www.codingame.com/training/easy/unique-prefixes
Send your feedback or ask for help here!
Created by @otpv,validated by @BigBart,@ItsAFeature and @Samsonov.
If you have any issues, feel free to ping them.
cannot pass the final validators7: the incremental options, I try to pass all the other testcases, I cannot pass the 7th validators may be the reson I still cannot figure out this case:
verbose
verb
verbose
verb
verbose
why it outputs
verbo
verb
verbo
verb
verbo
in my thought it should not be accepted because they existed the same words, and how can I tell if the testcases have the same words? I think it’s the reason I cannot pass it.
any suggestion for me?
Because “verbo” is enough to match “verbose”.
I’m stuck at the same place as you. How did you solve it?
Found the issue - I wasn’t handling duplicates very well.
This was excellent and straight forward to solve, Thank You!
this case my algo do well, as other in task, but submission fails 2,4,5 validators. any idea ?
You may send your code (with its language) in private, I might send back what’s wrong.
Found:
LIONEL
Expected:
LIO
I understand, there’re duplicates, but in this case the prefix is the whole word, no ? How come it’s LIO
I don’t know what you mean by duplicates, but the answer is LIO because there’s LINDSAY in the list (assuming you’re talking about Test 6 “Pierre, Paul, Jacques & co.”).