C. Deep Down Below | Codeforces Round

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

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

  • @Nothing-eg9ol
    @Nothing-eg9ol Год назад +1

    noice question read krte hi bs mind mei aagya but implement nhi hua btw nice explanation

  • @ApoorvaRajBhadani
    @ApoorvaRajBhadani 3 года назад +1

    Binary search was not necessary
    Just greedily arrange the caves using max found for each

  • @anshumansharma2251
    @anshumansharma2251 3 года назад

    why you've taken s=1,e=2e9?

  • @yashvaibhav925
    @yashvaibhav925 3 года назад +1

    How do you practise the maths behind competitive programming?

    • @divyanshtyagi4312
      @divyanshtyagi4312  3 года назад +3

      I haven't done anything special to prepare for it. Things like combinatorics i haven't revised since JEE.

  • @pronoob5664
    @pronoob5664 3 года назад

    can i get some edge cases, my soln is giving me (correct ans + 1) output for only some cases otherwise its giving correct output

  • @suvankarbanerjee6048
    @suvankarbanerjee6048 3 года назад

    why are u taking mid as a power how can u make sure that mid will be one of the power??

    • @divyanshtyagi4312
      @divyanshtyagi4312  3 года назад

      If u can lets say do the procedure with power as 2( the min power), couldnt you also have done it with power 3, 4 ... any power more than the the min answer. I am not saying that mid will be one of the answer for sure, if it is not, then answer must lie to its right, else either mid is the min power or some power to the left of it is the min power.

    • @divyanshtyagi4312
      @divyanshtyagi4312  3 года назад

      @@suvankarbanerjee6048 i think i have taken if(currPower

  • @arka6302
    @arka6302 3 года назад

    Nice explanation but binary search ke bina bhi hota ig
    Aur aap win 11 daal lo taskbar X nhi lagega then 🌟

    • @divyanshtyagi4312
      @divyanshtyagi4312  3 года назад +1

      daala tha par aadhi cheeze chalna band hogyi 😥

    • @arka6302
      @arka6302 3 года назад

      @@divyanshtyagi4312 mera toh sahi chal rha 😅

    • @divyanshtyagi4312
      @divyanshtyagi4312  3 года назад

      @@arka6302 🤔🤔

  • @bumblebee1078
    @bumblebee1078 3 года назад

    D solution??

  • @anshuman5554
    @anshuman5554 3 года назад

    Can you explain B too?

    • @divyanshtyagi4312
      @divyanshtyagi4312  3 года назад

      I have uploaded it, I was not planning on making it before so i just rushed over the concept.

  • @kunalsinghal3558
    @kunalsinghal3558 3 года назад

    Gawd D1 D2 ka bhi kuch kriye hum noobs ke lie.

    • @divyanshtyagi4312
      @divyanshtyagi4312  3 года назад +1

      👀👀

    • @kunalsinghal3558
      @kunalsinghal3558 3 года назад

      @@divyanshtyagi4312 Sir leetcode strange printer pe bhi aisi he video bna dijiye.... Gareebo ki dua lgegi.

    • @divyanshtyagi4312
      @divyanshtyagi4312  3 года назад +1

      @@kunalsinghal3558 ab aapko leetcode karne ki kya zaroorat hai :P

    • @kunalsinghal3558
      @kunalsinghal3558 3 года назад

      Han vai TCS C++ vs Java puchti h vhi yaad kr rha hu abhi 🙂

    • @divyanshtyagi4312
      @divyanshtyagi4312  3 года назад +1

      @@kunalsinghal3558 zaroor zaroor 👀

  • @souviknandi9298
    @souviknandi9298 3 года назад

    nicely explained:)

  • @vineetkumar2899
    @vineetkumar2899 3 года назад

    Thanks ❤️