Digital Logarithm || Codeforces Educational Round 135 Div2 Problem C

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 พ.ย. 2024

ความคิดเห็น • 37

  • @nopecharon
    @nopecharon 2 ปีที่แล้ว +4

    Never stop this codeforces explanation series. I love your videos.

  • @raymondlee6661
    @raymondlee6661 2 ปีที่แล้ว +6

    love how you don't go straight into the solution, and instead guide the viewer starting from observations + intuition

  • @raviranjansharma5216
    @raviranjansharma5216 2 ปีที่แล้ว +1

    With your videos my learning curve will shrink drastically. Thank you.

  • @utsavaggrawal2697
    @utsavaggrawal2697 ปีที่แล้ว +1

    thnx a lot

  • @girishbhargava6367
    @girishbhargava6367 2 ปีที่แล้ว +7

    Sir, where in the question is it mentioned that we need to go from log(n) base 10 +1 . I didn't get why are we adding 1 to the log value.

  • @prakhar5726
    @prakhar5726 2 ปีที่แล้ว +3

    baap explanation

  • @parthokr
    @parthokr 2 ปีที่แล้ว +2

    Nice trick other than using priority queue.
    BTW there is a neat hack. You can use
    for (auto [key, val]: a_map) {...}
    Less cumbersome to fetch out key or value.

  • @01utpalraj95
    @01utpalraj95 2 ปีที่แล้ว +2

    Bhaiya iska implement hard tha yrr poora same approach soch tha maine 🥲🥲

    • @ITACHIUCHIHA-dr8sz
      @ITACHIUCHIHA-dr8sz 2 ปีที่แล้ว

      Implementation with prority queue was easy, earlier i was trying to do it with multiset but dealing with iterators got complicated.

    • @competitivecoding-newtonsc9601
      @competitivecoding-newtonsc9601  2 ปีที่แล้ว +2

      I find this implementation easier as it is hard to delete and deal with iterators at the same time as Itachi said

  • @156_nishant7
    @156_nishant7 2 ปีที่แล้ว +3

    please upload the probelem D letter picking editorial

  • @zeyadmohamed6590
    @zeyadmohamed6590 2 ปีที่แล้ว +1

    Great explanation

  • @zoddd5254
    @zoddd5254 2 ปีที่แล้ว +1

    can u give the discord link,its not there in description

  • @craftsworld3237
    @craftsworld3237 2 ปีที่แล้ว +1

    Can we use sets???

    • @competitivecoding-newtonsc9601
      @competitivecoding-newtonsc9601  2 ปีที่แล้ว

      Yes you can use multiset or a priority queue. But it gets to keep track of iterators in multiset. Better use priority queue.

    • @craftsworld3237
      @craftsworld3237 2 ปีที่แล้ว

      Ohk sir

  • @siddhantnigam2015
    @siddhantnigam2015 2 ปีที่แล้ว +1

    I get error if i use unordered map instead of map in this code

    • @competitivecoding-newtonsc9601
      @competitivecoding-newtonsc9601  2 ปีที่แล้ว

      Unordered map can have collisions.

    • @anishtaori1426
      @anishtaori1426 ปีที่แล้ว

      @@competitivecoding-newtonsc9601 i didn't understand the problem with this sir. Can't the collisions be handled? and does this mean we have to avoid unordered maps when dealing with large test cases

  • @035asadali8
    @035asadali8 2 ปีที่แล้ว +1

    brother i solved this almost 30 minutes before contest end,but i use sets so got tle then i change the same code in arrays but i did a little mistake not able to find bug but i find the bug and submit 30sec after contest end and it got accepted and now i am pissed rn

  • @kartik4063
    @kartik4063 2 ปีที่แล้ว +1

    Please upload E Red Black Pepper

  • @ahmadbodayr7203
    @ahmadbodayr7203 2 ปีที่แล้ว +1

    Hope you are doing well sahil do your self a favour and read about islam ❤

    • @competitivecoding-newtonsc9601
      @competitivecoding-newtonsc9601  2 ปีที่แล้ว

      i am an atheist.

    • @ahmadbodayr7203
      @ahmadbodayr7203 2 ปีที่แล้ว

      ​@@competitivecoding-newtonsc9601 I know you are not muslim hence I told you read about islam , and i didnt tell you read about religions as there is only one religion, u know nothing comes for granted sahil put in the work , as the first question any human is asked after they die is "What is your religion" and if you answered by anything other than islam the following one is "Then what were you doing " meaning what were you doing being in other religion or being an athiest ? why Didnt you put in the work? why did you put the work in every thing in your life other than searching for your creator and why did he created you although he doesnt need you then why? why all the innocent people that die ?? why ? why there is suffering ?? If all that reduces nothing from his kingdom and all the people that are praying for him increase nothing in his kingdom then why? why there is evil why? Try preparing your answers before it is too late ❤​