Great Explanation of the concept! Was able to understand both Recursive way and then why we could use DP!
@satyajitdas27804 жыл бұрын
Thanks. William. Perfect explanation. Looking for more DP problems.
@piyushnaithani76894 жыл бұрын
Awesome, after a long time I see a nice DP problem solver on youtube
@mzmzgreen4 жыл бұрын
Awesome explanation! Could you please analyze the time/space complexity of the algorithms you're showing?
@ramkrishnakulkarni82894 жыл бұрын
100th like. Absolutely loved the video. Waiting for more videos on dp.
@bazgo-od7yj6 ай бұрын
8:23 why does it say 11, not10?
@afzalsiddique71654 жыл бұрын
12:42 -> Why "ribbon < 0"? And not "ribbon
@rahulsangvikar79732 жыл бұрын
Because ribbon = 0 is fine. We can skip the current column completely. But we can't add negative ribbon to the column
@mgehad3 жыл бұрын
Hey Thank you for your efforts. May I ask you. - is it possible to mod the plain scenes count then subtract the total from the plain or its gonna cause errors?
@polysimplifed4 ай бұрын
why not just calculate the number of all possible combinations, and then subtract with the unqualified solutions?
@CrystalSergeant4 жыл бұрын
next time please provide bottom up approach is it is harder to get.
@giorgos-45154 жыл бұрын
13:08 thats a dp technique called memoization there is a great video from codecamporg that illustrates it perfectly
@lenlen80993 жыл бұрын
To me dp comes from memoization
@giorgos-45153 жыл бұрын
@@lenlen8099 i mean dp is mostly recursion and recursion can get costly so it makes sense,just not entirely.(if it was any kind of joke it went completely over my head)