VERY EASY SOLUTION IN C++
IntuitionUSING SIMPLE MATHMATICAL LOGIC THE PROBLEM IS DONE.
FOR EQUILATERAL:ALL SIDES MUST BE OF SAME LENGTH
FOR SCALENE:ALL SIDES MUST BE OF DIFFERENT LENGTH
# Intuition
USING SIMPLE MATHMATICAL LOGIC THE PROBLEM IS DONE.
FOR EQUILATERAL:ALL SIDES MUST BE OF SAME LENGTH
FOR SCALENE:ALL SIDES MUST BE OF DIFFERENT LENGTH
NOW IF ABOVE TWO CONDITIONS FAILED TO MEET THEN IT IS NOTHING BUT ISOSCELES.
NOTE:TO FORM A TRIANGLE WITH GIVEN LENGHT OF SIDES THE MAIN CRITERIA IS THAT "THE SUM OF ANY TWO SIDES OF A TRIANGLE MUST BE STRICTLY GREATER THAN THE THIRD SIDE".SO IF THIS CONDITON FAILS THEN WE CAN'T FORM ANY TRIANGLE WITH THE GIVEN LENGTHS....

# Approach
APPROACH IS VERY SIMPLE.FROM THE ABOVE MENTIONED INTUITION WE HAVE JUST APPLIED THEM WITH CONDITIONAL OPERATORS AND SOLVED THE PROBLEM....

# Complexity
- Time complexity:
O(1) 

- Space complexity:
O(1)

# Code
```cpp []
class Solution {
public:
    string triangleType(vector<int>& nums) {
      if(nums[0]>=nums[1]+nums[2]||nums[1]>=nums[2]+nums[0]||nums[2]>=nums[0]+nums[1]){
return "none";
      }
        if(nums[0]==nums[1]&&nums[1]==nums[2]&&nums[2]==nums[0]){
            return "equilateral" ;
        }
       
        if(nums[0]!=nums[1]&&nums[1]!=nums[2]&&nums[2]!=nums[0]){
            return "scalene";
        }
        return "isosceles";
    }
};
```
['Math', 'C++']