my last test case is not passing. why?
Wildcard pattern matching
hello @Harsh_aggarwal
probably due to too much memory usage.
compress ur pattern.
example-> if pattern is aa **bb****c
then it is same as aa * bb *c
so do this compression and then try.
i compressed it successfully
but again it is showing TLE in the last test case
also some other test case falso also after compression
![]()
you missed to terminate ur new string with null that why failing for some test case.
rest evrything is correct in ur code.
i tried submitting editorial solution it is also failing for last test case.
so probably the issue is with the judge not in ur code.
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.