Sort
We sort the sides first to simplify the logic.\n\nC++\ncpp\nstring triangleType(vector<int>& n) {\n    sort(begin(n), end(n));\n    if (n[2] >= n[0] + n[1])\n  
We sort the sides first to simplify the logic.\n\n**C++**\n```cpp\nstring triangleType(vector<int>& n) {\n    sort(begin(n), end(n));\n    if (n[2] >= n[0] + n[1])\n        return "none";\n    return n[0] == n[2] ? "equilateral" : n[0] == n[1] || n[1] == n[2] ? "isosceles" : "scalene";\n}\n```
['C']