Search⌘ K
AI Features

Solution: Type of Triangle

C# solution for the Type of Triangle problem using the Math and Geometry pattern.

Statement

You are given an integer array nums of length 33, where each element represents the length of a side. Determine what kind of triangle these three sides form and return the corresponding string.

Return:

  • "equilateral" if all three sides are equal

  • "isosceles" if exactly two sides are ...