Matrix Search failed

Why does it fail for given input?
1 6

18 21 27 38 55 67

55

Apply the logic same as that in staircase search video in your course. You just have to pick the top right element in the array and start traversing from there accordingly.
Refer this

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.