My code is not working for following test case:-
text - baaabab
pattern - ba*a?
answer - true
my code:- https://ide.codingblocks.com/s/268475
My code is not working for following test case:-
text - baaabab
pattern - ba*a?
answer - true
my code:- https://ide.codingblocks.com/s/268475
hello @D19APPND0003
consider a case->

what if i==text.length()
but j < pattern.length
and all element in the ramining pattern ie [j…pattern.length-1] is * (astrisk ) only then in that case also ur string will match the given pattern .
i am talking about this case.
abc
abc****
I made some changes , but still 3 test cases are not passing, please review my code :- https://ide.codingblocks.com/s/268475
I am sorry for that, here is my updated code please review it - https://ide.codingblocks.com/s/268475
yeah ur code looks correct, try to memoise it or use bottom up dp to make it time efficient
I memoised it but 3 test cases are showing wrong answer
bro ur code is correct.
for ur satisfaction u can verify ur logic with this -> https://ide.codingblocks.com/s/270529
you are right ! my code is correct maybe I should try traversing from end of strings.