You are given an array of positive integers nums of length n.
A polygon is a closed shape with at least
The perimeter of a polygon is the sum of the lengths of all its sides.
Return the maximum possible perimeter of a polygon that can be formed using a subset of elements from nums. If it is impossible to form any polygon, return
Constraints:
n
nums[i]
You are given an array of positive integers nums of length n.
A polygon is a closed shape with at least
The perimeter of a polygon is the sum of the lengths of all its sides.
Return the maximum possible perimeter of a polygon that can be formed using a subset of elements from nums. If it is impossible to form any polygon, return
Constraints:
n
nums[i]