4 Line Code | C++ | 💨 Fast & 👌 Simple!
class Solution {\n\npublic:\n    bool searchMatrix(vector<vector<int>>& m, int t) {\n        for(int i=0, j=m[0].size()-1; i<m.size() && j>=0; ){\n            i
class Solution {\n```\npublic:\n    bool searchMatrix(vector<vector<int>>& m, int t) {\n        for(int i=0, j=m[0].size()-1; i<m.size() && j>=0; ){\n            if(m[i][j] < t)i++;\n            else if(m[i][j] > t)j--;\n            else return true;\n        }\n        return false;\n    }\n};\n```
[]