Easy Solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```typescript []\nfunction triangleType(nums: number[]): string {\n\n     const [a, b, c] = nums; //here i assigned values to this variables to easy calculation\n\n    \n    if (a + b <= c || a + c <= b || b + c <= a) {\n        return "none"; // Not a valid triangle\n    }\n\n    // Classify the triangle\n    if (a === b && b === c) {\n        return "equilateral"; // All sides are equal\n    } \n    if (a === b || b === c || a === c) {\n        return "isosceles"; // Two sides are equal\n    }\n    \n    return "scalene"; // All sides are different\n    \n};\n```
['TypeScript', 'JavaScript']