Codeforces Round 954 C - Update Queries | Detailed Video Explaination

Поділитися
Вставка
  • Опубліковано 26 сер 2024

КОМЕНТАРІ • 6

  • @formidablechief27
    @formidablechief27  2 місяці тому

    Accepted Sub Link : codeforces.com/contest/1986/submission/266988000

  • @RishabhKumar0094
    @RishabhKumar0094 2 місяці тому +1

    Understood

  • @bhag7768
    @bhag7768 2 місяці тому

    Thank you 🎉

  • @Dr.dhumketuIITDholakpur
    @Dr.dhumketuIITDholakpur 2 місяці тому +1

    Not able to understand one thing that which is better , smaller alphabets or large alphabets?

    • @formidablechief27
      @formidablechief27  2 місяці тому +2

      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

    • @Dr.dhumketuIITDholakpur
      @Dr.dhumketuIITDholakpur 2 місяці тому

      @@formidablechief27 ooh thanks that makes me sense