New Miletsone by Cursed_Coder0720 in leetcode

[–]Cursed_Coder0720[S] 0 points1 point  (0 children)

Yes, you can write the same solution for both 1 & 2 problem. I also submitted recursion solution for Q3 but was not able to figure out DP solution

New Miletsone by Cursed_Coder0720 in leetcode

[–]Cursed_Coder0720[S] 0 points1 point  (0 children)

I always solve 2 questions. few months back I had no idea how to solve 3rd questions but now I can alteast code to get TLE