956. Tallest Billboard | LeetCode Daily Challenge

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 17

  • @schan263
    @schan263 4 місяці тому

    I am glad that I discovered your channel today. Your explanation is so much better than the leetcode editorial. Your video is very concise. I hit the "Subscribe" button.

  • @halchal41
    @halchal41 Рік тому +1

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

  • @AR_7333
    @AR_7333 Рік тому

    Really simple and understandable explanation. Well done.

  • @tiger7858
    @tiger7858 Рік тому +1

    Sir please show us how to convert this into Tabulation dp

  • @VoltVipin_VS
    @VoltVipin_VS 4 місяці тому

    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.

  • @henryliu5671
    @henryliu5671 3 місяці тому

    best expanation

  • @thewebboard6577
    @thewebboard6577 Рік тому

    nice explanation.. keep it up bro

  • @kalravsharma178
    @kalravsharma178 Рік тому

    Excellent solution

  • @jevinmakwana6811
    @jevinmakwana6811 Рік тому +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: )

  • @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 Рік тому +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??

  • @aravindkumarn1776
    @aravindkumarn1776 Рік тому

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

    • @deepcodes
      @deepcodes  Рік тому +1

      XENX pen tablet and one-note app.

  • @GuruPrasadShukla
    @GuruPrasadShukla Рік тому

    thanks

  • @aryamansingha9984
    @aryamansingha9984 Рік тому

    Bhaiya hindi main explain kar do please

  • @shubhambagul3127
    @shubhambagul3127 Рік тому

    It was hard