Free written solutionMaximum Area of Longest Diagonal Rectangle (LeetCode 3000): Solution and Explanation
Among a list of rectangles, find the one with the longest diagonal and return its area. If several share that diagonal, return the largest of their areas.
Read the intuition, approach, code and complexity →