C++ Simple 4-line Solution
Intuition\nSimply check all conditions.\n\n# Complexity\n- Time complexity: O(1)\n\n- Space complexity: O(1)\n\n# Code\ncpp []\nclass Solution {\npublic:\n    s
# Intuition\nSimply check all conditions.\n\n# Complexity\n- Time complexity: O(1)\n\n- Space complexity: O(1)\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    string triangleType(vector<int>& nums) {\n        if ((nums[0] + nums[1] <= nums[2]) || (nums[0] + nums[2] <= nums[1]) || (nums[1] + nums[2] <= nums[0])) return "none";\n        if (nums[0] == nums[1] && nums[1] == nums[2]) return "equilateral";\n        if (nums[0] == nums[1] || nums[1] == nums[2] || nums[0] == nums[2]) return "isosceles";\n        return "scalene";\n    }\n};\n```
['C++']