Matrix Search question

few of my test cases are getting failed for the matrix search question , can you please help me in debugging the issue in code, PFB code link.

Thanks in advance!

hello @mridulpant please wait i will let you know the error .

hi, let me know for any update.

hey @mridulpant your code is producing correct result for every test case .
i have just checked the test cases .
i think your code is not optimised ,that could be the reason .

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.