Easy to Understand | Beats 100% | O(1) | 0ms Runtime🔥🧯🦹🏻‍♀️
Intuition : FOR THE LACKWITS!!
equilateral if it has all sides of equal length.
isosceles if it has exactly two sides of equal length.
scalene if all its sides
# Intuition : FOR THE LACKWITS!!

- equilateral if it has all sides of equal length.
- isosceles if it has exactly two sides of equal length.
- scalene if all its sides are of different lengths.
- sum of two sides is not greater than third one, then not a valid triangle
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
Check for all the above conditions!
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity: O(1)
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:O(1)
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```csharp []
public class Solution {
    public string TriangleType(int[] nums) {
        if(nums[0]+nums[1] <= nums[2] || nums[1]+nums[2] <= nums[0] || nums[2]+nums[0] <= nums[1]){
            return "none";
        }
        else if(nums[0]==nums[1] && nums[1]==nums[2]){
            return "equilateral";
        }
        else if(nums[0]==nums[1] || nums[0]==nums[2] || nums[1]==nums[2]){
            return "isosceles";
        }
        return "scalene";
    }
}
```
['Array', 'Math', 'Sorting', 'Java', 'C#', 'MS SQL Server']