Simple Maths 
IntuitionApproachComplexity

Time complexity:
O(1)


Space complexity:
O(1)

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

# Approach
<!-- Describe your approach to solving 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]) return "none";
        if(nums[1]+nums[2]<=nums[0]) return "none";
        if(nums[0]+nums[2]<=nums[1]) return "none";

        if(nums[0]==nums[1]&& nums[0]==nums[2]) return "equilateral";
        int x = nums[0]==nums[1];int y = nums[2]==nums[1];int z = nums[0]==nums[2];

        if(x+y+z == 1) return "isosceles";


         return "scalene" ;


    }
};
```
['C++']