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