Easy c++ code
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

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

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

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