Digital Logarithm || Codeforces Educational Round 135 Div2 Problem C

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • 🔥𝐏𝐚𝐲 𝐀𝐟𝐭𝐞𝐫 𝐏𝐥𝐚𝐜𝐞𝐦𝐞𝐧𝐭
    Newton School's 𝐅𝐮𝐥𝐥 𝐒𝐭𝐚𝐜𝐤 𝐂𝐨𝐮𝐫𝐬𝐞 𝟐𝟎𝟐𝟐 - bit.ly/FullSta...
    Newton School Official WhatsApp Support Number: +91 6362 331 200
    -----------------------------------------------------------------------------------
    📌𝐓𝐞𝐥𝐞𝐠𝐫𝐚𝐦:
    📌𝐋𝐢𝐧𝐤𝐞𝐝𝐈𝐧: / newto. .
    📌𝐈𝐧𝐬𝐭𝐚𝐠𝐫𝐚𝐦: / newtonschoo. .
    📌𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤: / newtonschool.co
    ------- 𝐀𝐛𝐨𝐮𝐭 𝐍𝐞𝐰𝐭𝐨𝐧 𝐒𝐜𝐡𝐨𝐨𝐥 -------
    🔵NEWTON SCHOOL is an online Edtech company providing the highest-rated FULL STACK DEVELOPMENT PROGRAM for professionals, graduates, and women.
    🌕NEWTON SCHOOL is your gateway to a high-paying tech career in 6 months with Zero fees till placement, transforming you into a rockstar full-stack developer earning 5-40 Lakh per annum salary. Newton School’s students are already working in more than 150+ top companies of India including Zomato, Unacademy, Deloitte, Nutanix, etc.
    🔵To watch more videos on programming, Data Structures, Android Development, Data Science, C++, Java, React, subscribe to our channel.
    - - - - - - - - - - - - - -
    If you're reading this far down, hello, you look nice today :)
    Digital Logarithm || Codeforces Educational Round 135 Div2 Problem C
    #NewtonSchool #NS #Fullstack #FSD #Datascience #MS #Postgrad #webdeveloper #programming #programmer #programmers #developer #coder #programmingmemes #coders #coding #frontenddeveloper #backenddeveloper #html #softwaredeveloper #hacking #python

ความคิดเห็น • 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

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

    baap explanation

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

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

  • @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.

  • @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

  • @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.

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

    thnx a lot

  • @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

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

    Please upload E Red Black Pepper

  • @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

  • @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

  • @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 ❤​