Easy solution | 100% beats
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:O(1)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    bool check(vector<int>& nums){\n        if (nums[0]+nums[1]>nums[2] && nums[0]+nums[2]>nums[1] && nums[1]+nums[2]>nums[0]){\n            return true;\n        }\n        return false;\n        \n    }\n    string triangleType(vector<int>& nums) {\n        if (nums[0]==nums[1] && nums[1]==nums[2]){\n            return "equilateral";\n        } if (check(nums)){\n            if (nums[0]!=nums[1] && nums[1]!=nums[2] && nums[0]!=nums[2]){\n                return "scalene";\n            } else if (nums[0]==nums[1]!=nums[2]|| nums[1]==nums[2]!=nums[0]|| nums[0]==nums[2]!=nums[1]){\n                return "isosceles";\n            }\n        }\n        return "none";\n    }\n};\n```
['C++']