You are given two integers x and y, which represent your current location (x, y) on a points where each points[i]
A point is valid if it shares either the same x coordinate or the same y coordinate as your current location (that is, x or y).
Return the
The Manhattan distance between two coordinates
Constraints:
points.length
points[i].length
x, y, a_i, b_i
You are given two integers x and y, which represent your current location (x, y) on a points where each points[i]
A point is valid if it shares either the same x coordinate or the same y coordinate as your current location (that is, x or y).
Return the
The Manhattan distance between two coordinates
Constraints:
points.length
points[i].length
x, y, a_i, b_i