Place an axis-aligned rectangle of perimeter P to contain the maximum number of points.
Unlock detailed company stats for this questionUpgrade
Given a set of coordinate points (x, y) and a rectangle perimeter P, place an axis-aligned rectangle (subject to the perimeter constraint) that contains the maximum number of given points, and return that count. Felt like computational geometry plus sliding window or two pointers; no exact LeetCode equivalent was found.
Format · Online assessment.
Community answers
No answers contributed by the community yet.


