easy solution | beats 100%
Code\n\nclass Solution {\npublic:\n    string triangleType(vector<int>& nums) {\n        if (nums[0] == nums[1] && nums[0] == nums[2]){\n            return "equ
# Code\n```\nclass Solution {\npublic:\n    string triangleType(vector<int>& nums) {\n        if (nums[0] == nums[1] && nums[0] == nums[2]){\n            return "equilateral" ;\n        }\n        else {\n            if ((nums[0]+nums[1]>nums[2]) && (nums[1]+nums[2]>nums[0]) && (nums[0]+nums[2]>nums[1])){\n                if(nums[0]==nums[1] || nums[0]==nums[2] || nums[1]==nums[2]){\n                    return "isosceles" ;\n                }\n                else return "scalene" ;\n            }\n        }\n        return "none" ;\n    }\n};\n```
['C++']