How do i improve this code?
Showing TLE in more than one cases
this question is under recursion challenge problems.
yeah i know,but u cannot pass all test case just by using recusion.
use dp to make it O(n) solution
Okay.
thank you for that :’)
How do i improve this code?
this question is under recursion challenge problems.
yeah i know,but u cannot pass all test case just by using recusion.
use dp to make it O(n) solution
Okay.
thank you for that :’)