LeetCode
Largest Triangle Area
Click
here
for an explanation.