Test cases failing, not sure why

Hey your code seems to be for tiling problem(instead of wildcard pattern matching)
still 10^9 is meaningless to compiler use 1000000007 or 1e9+7.

Hi, sorry about that, might have overwritten the file.
Here is the code for the wildcard match:

Consider this simple test
aa
a**a
answer should be 1 but your output is 0
it’s a classical DP problem and cannot be done greedily (as far as I know).

Hi I gave it another attempt with greedy. Can you check whats wrong?

It now only have test #5 failing

Varun never judge a solution that it only fails one test etc. (due to weak tests) If you are really confident, please try it at leetcode.

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.