O(1) 🔥 c++
Complexity

Time complexity:
O(1)


Space complexity:
O(1)

Code
# Complexity
- Time complexity:
$$O(1)$$

- Space complexity:
$$O(1)$$

# Code
```cpp []
class Solution {
public:
    string triangleType(vector<int>& nums) {
        if (nums[0] + nums[1] <= nums[2])
            return "none";

        if (nums[0] + nums[2] <= nums[1])
            return "none";

        if (nums[1] + nums[2] <= nums[0])
            return "none";

        unordered_set<int> store;
        for (int i = 0; i < nums.size(); i++) {
            store.insert(nums[i]);
        }

        if (store.size() == 1) {
            return "equilateral";
        } else if (store.size() == 2) {
            return "isosceles";
        }

        return "scalene";
    }
};
```
['Ordered Set', 'C++']