Max Sum of Rectangle No Larger Than K | Leetcode 363 | Approach + Code | Hard | C++ | Python

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 2. 07. 2021
  • C++ Code Link : github.com/Ayu-99/Data-Struct...
    Python Code Link: github.com/Ayu-99/Data-Struct...
    Please like, share and subscribe if you found the video useful. Feel free to ask in comments section if you have any doubts. :)
    #leetcode
    #leetcodeJulyChallenge
    #interviewpreparation
    Max Sum of Rectangle No Larger Than K solution
    Max Sum of Rectangle No Larger Than K Leetcode
    Max Sum of Rectangle No Larger Than K C++
    Max Sum of Rectangle No Larger Than K C++ Hindi
    Max Sum of Rectangle No Larger Than K Hindi
    Checkout the series: đŸ”„đŸ”„đŸ”„
    👉 Recursion : ‱ Recursion
    👉 Stack and Queue : ‱ Stack And Queue
    👉 Greedy : ‱ Greedy
    👉 Leetcode contests : ‱ Leetcode contests
    👉 Leetcode June Challenge : ‱ Leetcode June Challenge
    👉 Leetcode July Challenge : ‱ Leetcode July Challenge
    LIKE | SHARE | SUBSCRIBE đŸ”„đŸ”„đŸ˜Š

Komentáƙe • 32

  • @sandeepsharma3411
    @sandeepsharma3411 Pƙed 3 lety +3

    Keep uploading 😀👍

  • @nagarjunvinukonda162
    @nagarjunvinukonda162 Pƙed 3 lety +2

    Hi Ayushi, you are already considering the lower bound to get the value equivalent to k. Then why are you taking max of res? cant you directly take res every iteration?

    • @AyushiSharmaDSA
      @AyushiSharmaDSA  Pƙed 3 lety +1

      It depends on the values because we have both positive and negative values in the array. So, it's better to take max of current res and the new value

  • @suvamgupta2914
    @suvamgupta2914 Pƙed rokem

    Nicely explained, just fell in love with your teaching skills ❀
    Thank you so much keep up the good work 😎

  • @udayjordan4262
    @udayjordan4262 Pƙed rokem

    I have one doubt in this why we cant switch the rows and col i hope you got it what i want to say like you took l and r for a col i can do it for rows also but it is giving wrong answer what was the intution to take the column

  • @JayKumar-vl4bg
    @JayKumar-vl4bg Pƙed rokem +2

    kaash mujhe aapke jese teacher mill jaate 😍💖

  • @ravulaakhilsurya8569
    @ravulaakhilsurya8569 Pƙed 3 lety +1

    If possible cover biweekly and sunday contest questions too sister :)
    Yesterday their was two interesting questions so try to cover contests too if possible

  • @leepakshiyadav1643
    @leepakshiyadav1643 Pƙed rokem

    brialiant

  • @sandeepsharma3411
    @sandeepsharma3411 Pƙed 3 lety

    If possible please make video on decode a string recursively gfg problem

  • @amitpatelyt12
    @amitpatelyt12 Pƙed rokem

    Waah Didi ji Waah... ⚠

  • @Rahul-sq6gk
    @Rahul-sq6gk Pƙed 10 měsĂ­ci

    thank you :)

  • @raushankumar6993
    @raushankumar6993 Pƙed rokem

    thanks

  • @kratigoyal4416
    @kratigoyal4416 Pƙed rokem

    getting tle in java

  • @kratigoyal4416
    @kratigoyal4416 Pƙed rokem

    java code?

  • @exploringworld6817
    @exploringworld6817 Pƙed 3 lety

    👌 Pura din lg jata h intuition me?

  • @amitbajpai6265
    @amitbajpai6265 Pƙed 3 lety

    Yaar bohot accha explain Kiya hai ek ek approach detail Mai with complexity ke sath...... Mujhe nhi lagta ki isse accha explanation ho sakta hai...... 🙌🙌 Master 🙌🙌

  • @chegevarra1036
    @chegevarra1036 Pƙed rokem

    Đ’ĐžĐŽĐ”ĐŸ ĐżĐŸĐŽĐżĐžŃĐ°ĐœĐŸ ĐœĐ° Đ°ĐœĐłĐ»ĐžĐčсĐșĐŸĐŒ ĐœĐŸ ĐłĐŸĐČĐŸŃ€ŃŃ‚ ĐœĐ° ĐŽŃ€ŃƒĐłĐŸĐŒ

  • @tushar_agarwal_it_2nd_a_477

    Your cpp code is giving tle !

    • @AyushiSharmaDSA
      @AyushiSharmaDSA  Pƙed 3 lety

      Hi, can you please check again. It is getting accepted. :)

    • @tushar_agarwal_it_2nd_a_477
      @tushar_agarwal_it_2nd_a_477 Pƙed 3 lety +1

      @@AyushiSharmaDSA idk,maybe it was mistake on my part ,Anyways its now getting ac .And thanks you explained very well:)

    • @AyushiSharmaDSA
      @AyushiSharmaDSA  Pƙed 3 lety

      @@tushar_agarwal_it_2nd_a_477 no worries tushar. Thanks you 🙂

    • @amanthakur9058
      @amanthakur9058 Pƙed 3 lety

      @Tushar_Agarwal_IT_2nd_A_47 you have to get code yourself, You can understand the logic from here.