Wildcard pattern matching dp problem


i am not able to correct my code for this input

hello

he*z

Hey @mandeepchohan96
hello

he*z
Output for this should be 0 right
Its working fine on my side.

If u are talking about TLE in one case ,then let me tell u testcases are jumbled in editorial .So the one in whoch u are getting TLE is different.
Constraints are tight and hence u have to do this by bottum up to get it passed.
Recursion overhead is leading to TLE

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.

hello @mandeepchohan96
u have reopened the doubt, pls let me know what issue u r facing now