Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hello there, I`d like to propose my own solution for this binary search problem as it reduces the problem to "704. Binary Search" problem. Reduction is performed by considering matrix as whole 1D array of length m*n, elements in this "array" are stored in sorted order as well: access to the position inside a matrix can be done by 2 simple computations: ```Array[k] == Matrix[k / n][k % n]```, where n is the number of columns in a matrix (We simply linearize our matrix)
- Loading branch information