Simple java solution
Complexity\n- Time complexity: O(1)\n\n- Space complexity: O(1)\n\n# Code\n\nclass Solution {\n    public String triangleType(int[] nums) {\n        if(nums[0]+
# Complexity\n- Time complexity: $$O(1)$$\n\n- Space complexity: $$O(1)$$\n\n# Code\n```\nclass Solution {\n    public String triangleType(int[] nums) {\n        if(nums[0]+nums[1]>nums[2] && nums[1]+nums[2]>nums[0] && nums[2]+nums[0]>nums[1])\n        {\n            if(nums[0]==nums[1] && nums[1]==nums[2])\n            {\n                return "equilateral";\n            }\n            else if(nums[0]!=nums[1] && nums[1]!=nums[2] && nums[0]!=nums[2] )\n            {\n                return "scalene";\n            }\n            else if(nums[0]==nums[1] || nums[0]==nums[2] || nums[1]==nums[2])\n            {\n                return "isosceles";\n            }\n        }\n        return "none";\n    }\n}\n```
['Java']