Matrix Search Doubt

What is the error in my code?

Hey @Anaghajain
Only one correction on line 27 : here in condition else if(arr[row][col]>key)
it should be arr[row][col]<key.

1 Like

Got it! It worked! Thank you!

1 Like