0963. Minimum Area Rectangle II
https://leetcode.com/problems/minimum-area-rectangle-ii
Description
You are given an array of points in the X-Y plane points where points[i] = [xi, yi].
Return the minimum area of any rectangle formed from these points, with sides not necessarily parallel to the X and Y axes. If there is not any such rectangle, return 0.
Answers within 10-5 of the actual answer will be accepted.
Example 1:

Example 2:

Example 3:

Example 4:

Constraints:
1 <= points.length <= 50points[i].length == 20 <= xi, yi <= 4 * 104All the given points are unique.
ac
Last updated
Was this helpful?