smaller alphabets shd be given more priority because they will give you your lexographically minimum string. the reason i was explanation about higher alphabets is to explain why duplicates dont matter so if u ignore all duplicates in array, sort by smallest and update the smallest index with smallest character, you are guaranteed to get a perfect answer
Accepted Sub Link : codeforces.com/contest/1986/submission/266988000
Understood
Thank you 🎉
Not able to understand one thing that which is better , smaller alphabets or large alphabets?
smaller alphabets shd be given more priority because they will give you your lexographically minimum string.
the reason i was explanation about higher alphabets is to explain why duplicates dont matter
so if u ignore all duplicates in array, sort by smallest and update the smallest index with smallest character, you are guaranteed to get a perfect answer
@@formidablechief27 ooh thanks that makes me sense