EASY TO UNDERSTAND SOLUTION IN C++
IntuitionApproach:The only properties you need to remember:
A Triangle can only be formed if some of ANY two sides is GREATER then the third side.
Equilateral T
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach: 
The only properties you need to remember:
1. A Triangle can only be formed if some of ANY two sides is GREATER then the third side.
2. Equilateral Triangle: triangle having all 3 sides Equal.
3. Isoceles Triangle: Triangle having exactly 2 sides equal.  
4. Scalene Triangle: Triangle with all the 3 sides of unequal lengths
<!-- 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
```cpp []
class Solution {
public:
    string triangleType(vector<int>& nums) {
            if(nums[0]+nums[1] > nums[2] && nums[0]+nums[2] > nums[1] && nums[1]+nums[2] > nums[0]){
                if(nums[0] == nums[1] && nums[0] == nums[2]){
                    return "equilateral";
                }else if(nums[0] == nums[1] || nums[0] == nums[2] || nums[1] == nums[2] )
                {
                    return "isosceles";
                }else
                {
                    return "scalene";
                }
            }else{
                return "none";
            }
        }
    
};
```
['C++']