one out of 9 test case failed…
One test case failing
Piyush, your code is not producing correct output for following test cases,
aabac
** a **** a *** b *** ??
Expected output : 1
Your output : 0
This whitespace pattern is not getting checked by code. I made corrections still dp of last element is 0
Please help in this
Ok, I will make necessary changes in your code.
Piyush, I have edited your code, try to submit your code now,
line no 24-27 are setting the first row with true if pattern of j matches with *.
but it will always be false as previous element of j will always contains false unless the 0tht element of pattern is not star.
I read about this code but could you dry run the lines of 24-27 for some inputs
Piyush, the changes I have made in your code are as per the logic given in this video on the same, Plz refer to this video and let me know if u understood the changes or not,