Given a table HOUSES, find the manhattan distance of the house which is the farthest from John’s house which lies at coordinates (20, 4).
Basically you have to find the manhattan distance of some house which is the maximum amongst all the other houses from John’s house.
Manhattan Distance between 2 points P(x1, y1), Q(x2, y2) is given as |x1 - x2| + |y1 - y2|.
The description of the table HOUSES is given below:
NOTE : The output should contain only 1 column by the name ‘A’ .
Example :
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.