956. Tallest Billboard | LeetCode Daily Challenge

leetcode.com/problems/tallest...
#coding #dsa #leetcode #daily #programming #cpp #tutorial

Пікірлер: 15

  • @halchal41
    @halchal41 Жыл бұрын

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

  • @vatsalshingala3225

    @vatsalshingala3225

    4 күн бұрын

    😂

  • @VoltVipin_VS
    @VoltVipin_VSКүн бұрын

    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.

  • @tiger7858
    @tiger7858 Жыл бұрын

    Sir please show us how to convert this into Tabulation dp

  • @AR_7333
    @AR_7333 Жыл бұрын

    Really simple and understandable explanation. Well done.

  • @jevinmakwana6811
    @jevinmakwana6811 Жыл бұрын

    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: )

  • @kalravsharma178
    @kalravsharma178 Жыл бұрын

    Excellent solution

  • @thewebboard6577
    @thewebboard6577 Жыл бұрын

    nice explanation.. keep it up bro

  • @JeffreyConcerto
    @JeffreyConcerto Жыл бұрын

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

  • @omop5922

    @omop5922

    Жыл бұрын

    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 Жыл бұрын

    thanks

  • @aravindkumarn1776
    @aravindkumarn1776 Жыл бұрын

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

  • @deepcodes

    @deepcodes

    Жыл бұрын

    XENX pen tablet and one-note app.

  • @aryamansingha9984
    @aryamansingha9984 Жыл бұрын

    Bhaiya hindi main explain kar do please

  • @shubhambagul3127
    @shubhambagul3127 Жыл бұрын

    It was hard