sorted matrix ( Young Matrix ) search for a given value in the matrix: 1) starting from upper-right corner, turn left or turn down, O(n+m) 2) if it's square, O(n+m) is optimal, see http://stackoverflow.com/a/10597806 3) if it's not square, e.g. in ex…