#Codeforces

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

КОМЕНТАРІ • 24

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

    Thank you for your analysis.
    Your videos are helping me a lot in building intuition.

  • @HarshKumar-xw5nn
    @HarshKumar-xw5nn 2 місяці тому +3

    Great work sir really appreciate your efforts ❤

  • @Mohamed_Amine_Bennacef
    @Mohamed_Amine_Bennacef Місяць тому

    God Bless this man for making this journey possible

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

    Explanation for E is more than great!

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

    problem C : 15:43

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

    in the queries update, you are sorting p, p+m
    does it also sort based on 2nd value? afaik, it will probably sort on the basis of count, but shouldn't we also sort it index wise?

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

    Nice explanation❤

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

    Maybe ur code for G works cos of amortization?

  • @user-eq3mj5sd9f
    @user-eq3mj5sd9f 2 місяці тому

    i am not getting the code of c could someone explain me why we are taking the index-- just after taking the input how does this will help us to solve the porblem

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

    How if all the numbers are 1 result is 1??
    Result should be 11
    "11111"=11×1×1×1=11

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

      same doubt man

    • @JatinK-MC-
      @JatinK-MC- 2 місяці тому

      He didnt mean for all 1 in original string
      He meant after pairing we are left with all 1s,eg 1011 then we can pair 01 to get 1 and rest are 1,1 so answer is 1
      for your case,answer will be 11 yes

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

      Noo you should make the 2 digits number first then do the operation

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

    can smo tell the hack cases for B do while solution?

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

    thanks brother

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

    did the round become unrated and if yes why tf

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

    I didn't understand that in queries update when a index appears twice then how are we going to deal with it.

    • @Misfit-nd3zk
      @Misfit-nd3zk 2 місяці тому

      it don't matter as we only care about what to put in that index once so you can take 1 1 2 4 as 1 2 4 then put values of chars from small to large

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

      @@Misfit-nd3zk ok means we just had to sort the c string and then take unique values from the index array and put them inside the string s right?

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

      Yes

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

      You can think it like first placing some letter which are at the end of sorted string c and then for last time at the same index put the smallest

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

      i took a hash set for ind and sorted c string then simply put the lowest char values.

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

    your explanation for E is great