Tap here to switch tabs
Problem
Submissions

Problem: Largest Triangle Area

Try to solve the Largest Triangle Area problem.

Statement

Given an array of points on the XYXY plane points where points[i] = [x_i, y_i], return the maximum area of a triangle that can be formed by any 33 distinct points from points.

Constraints:

  • 3≤3 \leq points.length ≤50\leq 50

  • −50≤xi,yi≤50-50 \leq x_i, y_i \leq 50

  • All the given points are unique.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Largest Triangle Area

Try to solve the Largest Triangle Area problem.

Statement

Given an array of points on the XYXY plane points where points[i] = [x_i, y_i], return the maximum area of a triangle that can be formed by any 33 distinct points from points.

Constraints:

  • 3≤3 \leq points.length ≤50\leq 50

  • −50≤xi,yi≤50-50 \leq x_i, y_i \leq 50

  • All the given points are unique.