There is an infinite queries, where each queries[i] = [x, y] represents an obstacle placed at the coordinate k.
Initially, there are no obstacles on the plane. For each query, an obstacle is placed at the specified coordinate.
The distance of an obstacle at
Return an integer array results of length equal to queries.length, where results[i] represents the distance of the k obstacles present after a query, results[i] should be
Constraints:
queries.length
All queries[i] are unique.
queries[i][0], queries[i][1]
k
There is an infinite queries, where each queries[i] = [x, y] represents an obstacle placed at the coordinate k.
Initially, there are no obstacles on the plane. For each query, an obstacle is placed at the specified coordinate.
The distance of an obstacle at
Return an integer array results of length equal to queries.length, where results[i] represents the distance of the k obstacles present after a query, results[i] should be
Constraints:
queries.length
All queries[i] are unique.
queries[i][0], queries[i][1]
k