About the challenge

I dont understand how to handle rows and column i mean how i apply bimary search on it

Hey @manoj2597
For each row apply Binary search on it

for(int row=0;row<n;row++) 
      binarysearch on (a[i],a[i]+m,key)

Can u elsborate it more

every row is sorted so u can traverse over the rows and apply binary search on it to find the element
This is pretty simple
Let me know what u are not able to undetstand here

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.