You are given an integer array nums of length
Return:
"equilateral" if all three sides are equal
"isosceles" if exactly two sides are equal
"scalene" if all three sides are different
"none" if the three sides cannot form a valid triangle
A set of side lengths forms a valid triangle if the sum of any two sides is strictly greater than the remaining side.
Note: A triangle is valid only when all three pairwise triangle inequalities hold.
Constraints:
nums.length == 3
nums[i]
You are given an integer array nums of length
Return:
"equilateral" if all three sides are equal
"isosceles" if exactly two sides are equal
"scalene" if all three sides are different
"none" if the three sides cannot form a valid triangle
A set of side lengths forms a valid triangle if the sum of any two sides is strictly greater than the remaining side.
Note: A triangle is valid only when all three pairwise triangle inequalities hold.
Constraints:
nums.length == 3
nums[i]