Without if-else spaghetti
Intuition\n Describe your first thoughts on how to solve this problem. \nThe \space Triangle \space Inequality \space Theorem says:\n> The sum of two sides of a
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n$$The \\space Triangle \\space Inequality \\space Theorem$$ says:\n> The sum of two sides of a triangle must be greater than the third side.\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\nFind the right type of a triangle.\n\n# Complexity\n- Time complexity: $$O(1)$$\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: $$O(1)$$\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n\n---\n* You could find some other extraordinary solutions in my [profile](https://leetcode.com/almostmonday/) on the Solutions tab (I don\'t post obvious or not interesting solutions at all.)\n* If this was helpful, please upvote so that others can see this solution too.\n---\n\n\n# Code\n```\nclass Solution:\n    def triangleType(self, nums: List[int]) -> str:\n        res = ["none", "equilateral", "isosceles", "scalene"]\n        nums.sort()\n\n        return res[len(set(nums)) * (nums[2] < nums[0] + nums[1])]\n```
['Geometry', 'Python', 'Python3']