← ALL NOTES
Array

3024. Type of Triangle

Given an array of three side lengths nums, determine the triangle type: "equilateral" (all equal), "isosceles" (exactly two equal), "scalene" (all different), or "none" if no triangle exists. First…

Loading…