956. Tallest Billboard | LeetCode Daily Challenge

Sdílet
Vložit
  • čas přidán 23. 06. 2023
  • leetcode.com/problems/tallest...
    #coding #dsa #leetcode #daily #programming #cpp #tutorial

Komentáře • 15

  • @halchal41
    @halchal41 Před rokem +1

    Very nice explanation, much better than those who make 30 mins video and talk shit!

  • @AR_7333
    @AR_7333 Před rokem

    Really simple and understandable explanation. Well done.

  • @jevinmakwana6811
    @jevinmakwana6811 Před rokem +2

    Nice explanation bro...
    It would be better if you upload leet-daily before 10-11am, that would be beneficial for you to reach out more audience: )

  • @tiger7858
    @tiger7858 Před rokem +1

    Sir please show us how to convert this into Tabulation dp

  • @kalravsharma178
    @kalravsharma178 Před rokem

    Excellent solution

  • @thewebboard6577
    @thewebboard6577 Před rokem

    nice explanation.. keep it up bro

  • @VoltVipin_VS
    @VoltVipin_VS Před 6 dny

    For those who didn't understand the intuition behind this solution.
    Imagine 2 supports s1 and s2. s1 starts from 0 and s2 starts from sum of array. Now each rod will have 3 choice
    1. Add to S1
    2. Add to S2
    3. Remove from S2.
    Notice the third choice is removing from s2 not adding into Null Set.
    So comparing with the solution provided in the video.
    op1 is Choice 1
    op2 is Choice 3
    op3 is Choice 2, as rod is already added into s2 thats why no change.
    In recursive solution op3 is Choice of adding rod into a null set. which is different in memoized answer.

  • @JeffreyConcerto
    @JeffreyConcerto Před rokem

    I couldn't figure out how to memoize the problem after finding the recursive solution. Thanks for this, was very helpful.

    • @omop5922
      @omop5922 Před rokem +1

      I thought to store all subset sums with indexes in a map. Then check map for disjointed index sets. Can u tell why this won't work??

  • @GuruPrasadShukla
    @GuruPrasadShukla Před rokem

    thanks

  • @aravindkumarn1776
    @aravindkumarn1776 Před rokem

    @deepCodes whats the device are you using to explain in screen?

    • @deepcodes
      @deepcodes  Před rokem +1

      XENX pen tablet and one-note app.

  • @shubhambagul3127
    @shubhambagul3127 Před rokem

    It was hard

  • @aryamansingha9984
    @aryamansingha9984 Před rokem

    Bhaiya hindi main explain kar do please