Practice Largest Triangle Area
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
Choose any three different points from points and return the largest triangle area they can form. Each point is an [x, y] coordinate. An answer within 10^-5 of the true area is accepted.
Source: Largest Triangle Area on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
Input
points = [[0,0],[0,1],[1,0],[0,2],[2,0]]
Output
2.00000
# Example 2
Input
points = [[1,0],[0,0],[0,1]]
Output
0.50000
Constraints
3 <= points.length <= 50
-50 <= xi, yi <= 50
All the given points are unique.
Related LeetCode Problems
Practice more problems similar to Largest Triangle Area.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.