LeetCode 1779. Find Nearest Point That Has the Same X or Y Coordinate
Description https://leetcode.com/problems/find-nearest-point-that-has-the-same-x-or-y-coordinate/ You are given two integers, x and y, which represent your current location on a Cartesian grid: (x, y). You are also…