Using JAVA Beats 100%
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```java []
class Solution 
{
    public String triangleType(int[] nums) 
    {
        //condition for not forming a triangle
        if( nums[0]+nums[1]<=nums[2] )
        return "none";
        else if( nums[0]+nums[2]<=nums[1] )
        return "none";
        if( nums[1]+nums[2]<=nums[0] )
        return "none";
        //now if execution is at this line --> this means a triangle is formed
        if( (nums[0]==nums[1] && nums[1]==nums[2]) && (nums[0]==nums[2]) )
        return "equilateral";
        else if( (nums[0]!=nums[1] && nums[1]!=nums[2]) && (nums[0]!=nums[2]) )
        return "scalene";
        return "isosceles";
    }
}
```
['Java']