0976. Largest Perimeter Triangle
https://leetcode.com/problems/largest-perimeter-triangle
Description
Given an integer array nums
, return the largest perimeter of a triangle with a non-zero area, formed from three of these lengths. If it is impossible to form any triangle of a non-zero area, return 0
.
Example 1:
Example 2:
Example 3:
Example 4:
Constraints:
3 <= nums.length <= 104
1 <= nums[i] <= 106
ac
Last updated