Matrix Coordinate
int row = matrix.length;
int col = matrix[0].length;
int start = 0, end = row * col - 1;
int number = matrix[mid / col][mid % col];
Last updated
int row = matrix.length;
int col = matrix[0].length;
int start = 0, end = row * col - 1;
int number = matrix[mid / col][mid % col];
Last updated