Link: https://leetcode.com/problems/largest-triangle-area/
Solution:
DSA: math
Intuition
Not really much to this problem. Just try all points with a triple for loop with the formula for calculating area with coordinates:
area = abs(0.5*(x1*(y2-y3)+ x2*(y3-y1) + x3*(y1-y2))
Implementation
Visual