Amazon Local wants to show deals where customers can hike to an area of a given altitude
and get a great deal on a local product. To do that, we want to see if there's a deal at a
customer's desired altitude. Remember that some destinations are below sea level.
To store the altitudes, we have a two-dimensional integer matrix. The top-left position in the
matrix is <0,0> and the bottom right corner is <rowCount-1,column Count-1>. The altitudes
each column and row are sorted in ascending order from top to bottom and left to right,
respectively.
Write an algorithm to find the pair containing the location of the target altitude in
Crow,colum> order.
Input
The input to the function/method consists of four arguments -
rowCount, an integer representing the number of rows in the matrix;
column Count, an integer representing the number of columns in the matrix;
matrix, representing a two-dimensional integer matrix;
targetValue, an integer representing the target altitude.
cpp program
Answers
Answered by
0
Answer:
i didnt under stand
Explanation:
i didnt under stand
Similar questions