Educational Codeforces Round 170 | Video Solutions - A to E | by Abhinav Kumar | TLE Eliminators

Поделиться
HTML-код
  • Опубликовано: 20 янв 2025

Комментарии • 37

  • @TLE_Eliminators
    @TLE_Eliminators  3 месяца назад +3

    Please fill the Feedback form for PCD: forms.gle/vFqPuXCuCMxizwok6

  • @AnhPhan-ng9vp
    @AnhPhan-ng9vp 3 месяца назад +5

    huge respect from Vietnam !

  • @ravisinha1310
    @ravisinha1310 3 месяца назад +2

    I was confused by codeforces editotial ,but here i got all clarity

  • @kimjong-un4521
    @kimjong-un4521 3 месяца назад +5

    Gifted explainer. super good

  • @ujjwalagnihotri5001
    @ujjwalagnihotri5001 3 месяца назад +5

    D was a great problem

  • @AppMaruf
    @AppMaruf 3 месяца назад +4

    Sound quality is very good

  • @shivamkumar5857
    @shivamkumar5857 3 месяца назад +1

    Greatly explained

  • @sakshamsamarth687
    @sakshamsamarth687 3 месяца назад +3

    i am new at codeforces and this was my first contest and i was able to do 1st question and +371 is it good

  • @alokkumar5123
    @alokkumar5123 3 месяца назад +2

    thank you sir

  • @Dhanush-zj7mf
    @Dhanush-zj7mf Месяц назад

    The code used in video for problem D gives TLE on test case 10 in cf

  • @Danish-saifi1
    @Danish-saifi1 3 месяца назад +1

    crazy explanations

  • @HarshKumar-rk4zm
    @HarshKumar-rk4zm 3 месяца назад +4

    The time comp. Of (D) is larger than (n lg n + m^2 lg n).

    • @harshharsh1166
      @harshharsh1166 3 месяца назад

      m*n log n + m^2 log n

    • @zaid6527
      @zaid6527 3 месяца назад +3

      @@harshharsh1166 no it is max(m^2 log n, n log n), because the sorting part we are not doing on whole array, and also we are clearing it as soon as we get a 0

  • @aary-s3e
    @aary-s3e 3 месяца назад +1

    very nice explanation

  • @DevilIitian
    @DevilIitian 3 месяца назад

    sir yeh bata ki jaise jo third wala tha to usme agar saare element ki frequency nikal kar , un elements ki bhi frequency nikalenge jo array nahi hai , then unme k consecutive ka max sum nikal le to sit test case 1 tak chal raha hai

  • @ravisinha1310
    @ravisinha1310 3 месяца назад

    superb explaination .

  • @nrnfacts9923
    @nrnfacts9923 3 месяца назад

    Why not we can use 2 common prefix in two string? Problem A

  • @shashanktiwari6999
    @shashanktiwari6999 3 месяца назад

    is memoisation soln available for ques D?

  • @sakshamsamarth687
    @sakshamsamarth687 3 месяца назад

    sir, saying not to go in n^2 le me playing in n^3

  • @DevilIitian
    @DevilIitian 3 месяца назад +1

    sir i am also from iit dhanbad aapki tarah cp kab kar paunga

  • @TanmayMankar-26
    @TanmayMankar-26 3 месяца назад +1

    I used map in b but at it gave tle at 10th test

  • @devmahad
    @devmahad 2 месяца назад

    thanks :)

  • @saicharangarapati2517
    @saicharangarapati2517 3 месяца назад

    question A: is this test case will work :
    abc
    defabc
    now time is 9sec or 7sec...?

    • @11aniketkumar
      @11aniketkumar 3 месяца назад +5

      9

    • @MicAndRhythms
      @MicAndRhythms 3 месяца назад

      9

    • @DevilIitian
      @DevilIitian 3 месяца назад

      bhai aggar pehla character hi same nahi to o/p dono string ki length output kar dena

    • @MicAndRhythms
      @MicAndRhythms 3 месяца назад

      @@DevilIitian absolutely right

    • @aneesbazmi1612
      @aneesbazmi1612 3 месяца назад

      7, but dont know why he told this way, i red the statement again and again, but don't know how the output and statment of the problem mismatches.

  • @whoamitotheworld4567
    @whoamitotheworld4567 3 месяца назад

    is problem D a common dp pattern?

    • @SNX03
      @SNX03 3 месяца назад

      I mean it's a very standard dp nothing special about it, it's just linear dp with >> O(n*K) transitions

    • @whoamitotheworld4567
      @whoamitotheworld4567 3 месяца назад

      @@SNX03 n*m would give you tle, my question was is it a common pattern to apply dp and use sorting and binary search in range.

    • @SNX03
      @SNX03 3 месяца назад

      @@whoamitotheworld4567 I said it's a general problem with n*K transitions I never said it's the total time complexity, K is a constant that you have to manage to make sure it fits the bounds, in this case it was log(n) and n was m
      So you had M * Log(N) transitions. DP + binary search is common, if you have practised fundamental problems it appears in longest increasing subsequence to better the complexity of transitions from O(N) to O(logN) similarly we used that technique here by finding upper bound. So if you have done that you would have never asked if it's a common pattern, if you haven't please do it.

    • @whoamitotheworld4567
      @whoamitotheworld4567 3 месяца назад

      @@SNX03 Thanks

    • @SNX03
      @SNX03 3 месяца назад

      @@whoamitotheworld4567 your welcome bro