Search in a 2d Matrix using Binary Search
class Solution {\n    public boolean searchMatrix(int[][] matrix, int target) {\n        \n         int row= matrix.length;\n        int column= matrix[0].lengt
class Solution {\n    public boolean searchMatrix(int[][] matrix, int target) {\n        \n         int row= matrix.length;\n        int column= matrix[0].length;\n        \n        int rowindex=0;\n        int columnindex=column-1;\n        \n        while(rowindex<row && columnindex>=0){\n            \n            int element= matrix[rowindex][columnindex];\n            \n            if(element==target){\n                return true;\n            }\n            else if(element<target){\n                rowindex++;\n                \n            }\n            else{\n                columnindex--;\n            }\n        }\n        return false;\n        \n    }\n}
['Array', 'Binary Search', 'Java']