Nice as usual Please when are you dropping next videos?
@souravshaw89045 ай бұрын
Great explanation 💯
@saurabhsingh-zm9zh5 ай бұрын
thank you mohan for simplifying the explanation , i found it very useful ❤
@chaitanya8125 ай бұрын
waiting from it from the very start❤
@vamsikrishnagannamaneni9125 ай бұрын
if all the values are unique, the dp will render useless right? Please correct me if i am wrong
@codingmohan5 ай бұрын
Which values you are referring to here? If you mean the array values, then No. The dp prevents recalculation of the same state (think of it in terms of recursion for easier visualization). If you remove dp, the same state might get recomputed more than once, thereby increasing the time complexity of solution. If you still not sure of it - try to do a dry run of the recursive solution once using pen and paper.
@krishanusaha52125 ай бұрын
Great explanation bhaiya as always, bhaiya wp check karo na 😅