getting TLE.
https://ide.codingblocks.com/s/48937
Matrix search(search for a number)
Problem in Line Number 23, when the ‘key’ is found you should break the loop, otherwise you are running an infinite loop leading to TLE.
Correct Code - https://ide.codingblocks.com/s/48951
still it it is showing TLE
In line number 9, it should be j<m instead of i<m.