Queries on number of points inside a circle

Revision en1, by sayeef006, 2022-05-15 15:27:58

Statement: You are given an array points where points[i] = [xi, yi] is the coordinates of the ith point on a 2D plane. Multiple points can have the same coordinates.

You are also given an array queries where queries[j] = [xj, yj, rj] describes a circle centered at (xj, yj) with a radius of rj.

For each query queries[j], compute the number of points inside the jth circle. Points on the border of the circle are considered inside.

Is this doable for N,Q<=1e5, xi,yi,xj,yj,rj<=1e5?

Tags nobody reads tags

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sayeef006 2022-05-15 15:27:58 535 Initial revision (published)