Easy To Understand | Beats 100% | O(1) | 0ms runtime 
IntuitionThe problem asks to determine the type of triangle (equilateral, isosceles, scalene) or check if a triangle is valid based on given side lengths.Approa
# Intuition
The problem asks to determine the type of triangle (equilateral, isosceles, scalene) or check if a triangle is valid based on given side lengths.
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
Sorting
Triangle Validity Check
Frequency Count:
<!-- Describe your approach to solving the problem. -->

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

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

# Code
```python3 []
class Solution:
    def triangleType(self, nums: List[int]) -> str:
        nums.sort()
        b=[]
        for i in nums:
            b.append(i*i)
        if (b[0]+b[1])*0.5==b[2] or nums[0]+nums[1]>nums[2]:
            a=Counter(nums)
            if len(a)==1:
                return "equilateral"
            if len(a)==2:
                    return "isosceles"
            else:
                return "scalene"
        return "none"
```
['Python3']