I am getting TLE in all test cases except one. Please check.
the link of my code :
Getting TLE error!
@sanjit_15
It is a DP question
You solved it using recursion
Here is your modified solution https://ide.codingblocks.com/s/211737
Oh Thank you for your modified solution! But it was put in Challenges β Recursion section. + I donβt know about dp till now. I will look forward to learn dp soon.
1 Like