C# Solution
\n        public bool SearchMatrix(int[,] matrix, int target)\n        {\n            int currentRow = 0, currentCol = matrix.GetLength(1) - 1;\n\n            w
```\n        public bool SearchMatrix(int[,] matrix, int target)\n        {\n            int currentRow = 0, currentCol = matrix.GetLength(1) - 1;\n\n            while(currentRow <= matrix.GetLength(0) - 1 && currentCol >= 0)\n                if (matrix[currentRow, currentCol] == target)\n                    return true;\n                else if (matrix[currentRow, currentCol] < target)\n                    currentRow++;\n                else if (matrix[currentRow, currentCol] > target)\n                    currentCol--;\n\n            return false;\n        }\n```
[]