2020년/코테
[코테 연습] Largest Perimeter Triangle
위지원
2020. 9. 9. 16:14
https://leetcode.com/problems/largest-perimeter-triangle/
Largest Perimeter Triangle - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
leetcode.com
Given an array A of positive lengths, return the largest perimeter of a triangle with non-zero area, formed from 3 of these lengths.
If it is impossible to form any triangle of non-zero area, return 0.