0 ms || BEATS 100% 
Code
\n# Code\n```cpp []\nclass Solution {\npublic:\n    string triangleType(vector<int>& nums) {\n        if((nums[0]==nums[1]) && (nums[1]==nums[2])) return "equilateral";\n        sort(nums.begin(),nums.end()); \n        if((nums[0]+nums[1])>nums[2]){\n            if((nums[0]==nums[1]) || (nums[1]==nums[2]) || (nums[0]==nums[2])) return "isosceles";\n            else\n                return "scalene";\n        }\n        return "none";\n    }\n};\n```
['C++']