You are given a rectangles where rectangles[i] = [l_i, h_i] indicates that the
You are also given a points where points[j] = [x_j, y_j] is a coordinate on the Cartesian plane.
The
Return an integer array ans of length equal to points.length, where ans[j] is the number of rectangles that contain the
Note: A point that lies on the boundary of a rectangle is considered to be contained within the rectangle.
Constraints:
rectangles.length, points.length
rectangles[i].length points[j].length
All the rectangles are unique.
All the points are unique.
You are given a rectangles where rectangles[i] = [l_i, h_i] indicates that the
You are also given a points where points[j] = [x_j, y_j] is a coordinate on the Cartesian plane.
The
Return an integer array ans of length equal to points.length, where ans[j] is the number of rectangles that contain the
Note: A point that lies on the boundary of a rectangle is considered to be contained within the rectangle.
Constraints:
rectangles.length, points.length
rectangles[i].length points[j].length
All the rectangles are unique.
All the points are unique.