C++ Two Pointer Solution
\nclass Solution {\npublic:\n    bool searchMatrix(vector<vector<int>>& matrix, int target) {\n        int i = 0;\n\t    int j = matrix[0].size()-1;\n\t    whil
```\nclass Solution {\npublic:\n    bool searchMatrix(vector<vector<int>>& matrix, int target) {\n        int i = 0;\n\t    int j = matrix[0].size()-1;\n\t    while(i<matrix.size() && j>=0){\n\t        if(matrix[i][j]==target) return true;\n\t        else if(matrix[i][j]<target)  i++;\n\t        else  j--;\n\t    }\n\t    return false;\n    }\n};\n```
['Two Pointers', 'C', 'C++']