Find Target In A Matrix
August 1, 2017
Consider a two-dimensional matrix containing integer entries in which all rows and all columns are sorted in ascending order; for example:
1 12 43 87 9 25 47 88 17 38 48 92 45 49 74 95
Your task is to write a program that takes a matrix as describe above, and a target integer, and determines if the target integer is present in the matrix. When you are finished, you are welcome to read or run a suggested solution, or to post your own solution or discuss the exercise in the comments below.