i am getting tle on 4 test cases . is there any problem with my recursive equation ?
Tilling problem-2
you can use dynamic programming if you want to dont get tle
just via recursion is it not possible without tle
@shan54 no shantanu test cases is large for this question you have to implement this question via dynamic programming.
I think its good to go throught dynamic programming first and then solve both of the questions sections(recursion and dp)
1 Like
@ariabanazadeh if you have enough idea about recursion now then go for dynamic prog.else complete the recursion first
1 Like