0812. Largest Triangle Area

https://leetcode.com/problems/largest-triangle-area

Description

Given an array of points on the X-Y plane points where points[i] = [xi, yi], return the area of the largest triangle that can be formed by any three different points. Answers within 10-5 of the actual answer will be accepted.

Example 1:

Example 2:

Constraints:

  • 3 <= points.length <= 50

  • -50 <= xi, yi <= 50

  • All the given points are unique.

ac

Last updated

Was this helpful?