its not running in your compiler but running in other compiler can you please see the code and tell where i am wrong
Kepad codes 628
Hello @neeleshr628,
Which question is this?
- Ultra-Fast-Mathematicians
- RECURSION-KEYPAD CODES
I cannot find any similarity between your code and the above mentioned problems.
So, can you please share the link of your code.
tiling problem II sorry i have mentioned the wrong name
Your code is causing TLE for large values.
Solution:
Try DP approach instead recursive to reduce time complexity to O(logn).
Using DP you are storing the results of subproblems.
Hope, this would help.
Give a like, if you are satisfied.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.