Very nice explanation, much better than those who make 30 mins video and talk shit!
@vatsalshingala3225
4 күн бұрын
😂
@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 Жыл бұрын
Sir please show us how to convert this into Tabulation dp
@AR_7333 Жыл бұрын
Really simple and understandable explanation. Well done.
@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 Жыл бұрын
Excellent solution
@thewebboard6577 Жыл бұрын
nice explanation.. keep it up bro
@JeffreyConcerto Жыл бұрын
I couldn't figure out how to memoize the problem after finding the recursive solution. Thanks for this, was very helpful.
@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 Жыл бұрын
thanks
@aravindkumarn1776 Жыл бұрын
@deepCodes whats the device are you using to explain in screen?
Пікірлер: 15
Very nice explanation, much better than those who make 30 mins video and talk shit!
@vatsalshingala3225
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.
Sir please show us how to convert this into Tabulation dp
Really simple and understandable explanation. Well done.
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: )
Excellent solution
nice explanation.. keep it up bro
I couldn't figure out how to memoize the problem after finding the recursive solution. Thanks for this, was very helpful.
@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??
thanks
@deepCodes whats the device are you using to explain in screen?
@deepcodes
Жыл бұрын
XENX pen tablet and one-note app.
Bhaiya hindi main explain kar do please
It was hard