Sort & 3 conditions
\n# C++\n\nstring triangleType(vector<int>& nums) {\n    sort(nums.begin(), nums.end());\n    if(nums[0] + nums[1] <= nums[2]) return "none";\n    if(nums[0] ==
\n# C++\n```\nstring triangleType(vector<int>& nums) {\n    sort(nums.begin(), nums.end());\n    if(nums[0] + nums[1] <= nums[2]) return "none";\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    return "scalene";\n}\n```\n\n# Java\n```\npublic String triangleType(int[] nums) {\n    Arrays.sort(nums);\n    if(nums[0] + nums[1] <= nums[2]) return "none";\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    return "scalene";\n}\n\n```
['C++', 'Java']