1 test case fail
Wildcard matching
give me sometime i will check your code .
your logic is not correct
for test cases like
hello
he*z
your code returns true but ans should be false
hello
h*l
ans should be false
what you are doing is the moment you find * you return true but there can be cases where the pattern string has some characters after * which does’nt match to the given string
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.