Codeforces Round 813(Div-2) Solutions || Problems A,B,C and D

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

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

  • @sohamm20
    @sohamm20 2 года назад

    I think D is more intuitive with binary search on answer

  • @hitesh6856
    @hitesh6856 2 года назад +4

    Your explanation is always the best.

  • @rohitrout6450
    @rohitrout6450 2 года назад

    keep making these solution. you are a real inspiration

  • @rohitrout6450
    @rohitrout6450 2 года назад

    In D problem why can't we say that just use k operations to make all the minimum element to 1e9 and after that
    the answer can be max( min(2*mn ,a[i],a[i+1]) where 1

    • @Harisamsharma
      @Harisamsharma  2 года назад

      due to duplicates, we don't really know which ''smallest k elements' we need to take

    • @rohitrout6450
      @rohitrout6450 2 года назад

      @@Harisamsharma I want to say..
      Since the upper bound of the diameter will always be 2*mn or edges between the neighbours ,then is it not correct to say that just increase the bound of the diameter which is 2*mn so as to have larger values in possibility?
      And to do that we have to convert all the k smallest elements to 1e9.

  • @mohdaasimqureshi7115
    @mohdaasimqureshi7115 2 года назад

    Nicely done D by making observations
    Hats off man 🙌🙌

  • @satyampal7235
    @satyampal7235 2 года назад

    Thanks for explanation , it was awesome.

  • @tushar7305
    @tushar7305 2 года назад

    How can we manage time between college studies and coding ?

    • @Harisamsharma
      @Harisamsharma  2 года назад +3

      I personally have a unique approach to tackle this problem, I don't do college studies..

    • @tushar7305
      @tushar7305 2 года назад

      @@Harisamsharma then cgpa ?

  • @asdsadafggggggg
    @asdsadafggggggg 2 года назад

    Keep doing this thanks

  • @_cypher_
    @_cypher_ 2 года назад +1

    sir according to you what is expected rating of problem C ? Thanku for the amazing explanation

  • @hiheven4656
    @hiheven4656 2 года назад +1

    are u able to view the editorials using the new dark theme ? it comes as page unresponsive but contest page is working fine! how does it come fr u harisam bro ?

  • @abhisheksingh5818
    @abhisheksingh5818 2 года назад

    thanks for the explaination!! loved it

  • @toptnn
    @toptnn 2 года назад +2

    Today c was in easy side , i generally get stuck in ideal div2c , so what ratings of problems do I need to solve?

  • @baibhavkumar9006
    @baibhavkumar9006 2 года назад

    please upload contest 815😑

  • @pushkarwaykole7043
    @pushkarwaykole7043 2 года назад +1

    I wrote the same code for Question A and got pretests passed and now it is showing accepted.What is pretests passed anyways?

    • @tushar7305
      @tushar7305 2 года назад

      during the contest only some some test case are checked and if those test case passes then it shows pretest passed but , after the contest is over more test case are checked if those are also passed then it shows accepted

  • @ShivamSingh-jr9dg
    @ShivamSingh-jr9dg 2 года назад +2

    Thank you for the amazing explanation. Did you upsolve the last 2 problems. And how should we approach those problems and someone who has never solved more than 3 problems.

    • @Harisamsharma
      @Harisamsharma  2 года назад +2

      Was able to do E1 myself. kind of regretting not trying it hard during the contest. will have a look at the editorial for E2 and I think i will leave F for now.
      and for the advice, I would say try to upsolve till at least D in every contest, that will help you a lot.

    • @tushar7305
      @tushar7305 2 года назад

      @@Harisamsharma my current rating 1022 should i also upsolve D , i was able to solve till C in contest .

  • @jeevansingh5170
    @jeevansingh5170 2 года назад

    Thanks for sharing bro, It helps a lot.

  • @dubey6670
    @dubey6670 2 года назад

    iven paid on meme bro but abhi tak no response

    • @dubey6670
      @dubey6670 2 года назад

      more than a week is over

    • @Harisamsharma
      @Harisamsharma  2 года назад

      @@dubey6670 will contact you shortly!

  • @rohithyelagam5544
    @rohithyelagam5544 2 года назад

    bro will questions similar to D difficulty rating be asked in placements?

    • @rohithyelagam5544
      @rohithyelagam5544 2 года назад

      whats your thoughts?

    • @Harisamsharma
      @Harisamsharma  2 года назад

      I think D is a very Adhoc’ish problem, such problems are almost never asked in company tests.

  • @gauravsindhu9890
    @gauravsindhu9890 2 года назад

    nice explanation

  • @rohitrout6450
    @rohitrout6450 2 года назад

    can the D question be solved using dp ? if yes then do you know any intuition of it?

    • @Harisamsharma
      @Harisamsharma  2 года назад

      Well I don't think so..

    • @rohitrout6450
      @rohitrout6450 2 года назад

      @@Harisamsharma see tourist , ssrs code they have used it.

    • @Harisamsharma
      @Harisamsharma  2 года назад

      @@rohitrout6450 Tourist used Binary search on answer. I don't see any kind of dp in his code, or maybe i am missing something

    • @rohitrout6450
      @rohitrout6450 2 года назад

      @@Harisamsharma see ssrs code if you know it.
      He used 3D dp there, even the tags include dp so..

  • @toptnn
    @toptnn 2 года назад

    Btw nice explanation 😀

  • @yourbestie4138
    @yourbestie4138 2 года назад +1

    nice explanation