[LeetCode] Count Number of Rectangles Containing Each Point

1 · · April 24, 2022, 3:47 a.m.
2250. Count Number of Rectangles Containing Each Point You are given a 2D integer array rectangles where rectangles[i] = [li, hi] indicates that ith rectangle has a length of li and a height of hi. You are also given a 2D integer array points where points[j] = [xj, yj] is a point with coordinates (xj, yj). The ith rectangle has its bottom-left corner point at the coordinates (0, 0) and its top-right corner point at (li, hi). Return an integer array count of length points.length where count[j] i...