Java Check None first
See code. \n# Complexity\n- Time complexity:\n Add your time complexity here, e.g. O(n) \nO(1)\n- Space complexity:\n Add your space complexity here, e.g. O(n) 
See code. \n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\nO(1)\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\nO(1)\n# Code\n```\nclass Solution {\n    final String EQ = "equilateral";\n    final String ISO = "isosceles";\n    final String SCA = "scalene";\n    final String NONC = "none";\n    public String triangleType(int[] nums) {\n        int a = nums[0], b = nums[1], c = nums[2];\n        if (a + b <= c || b +c <= a || a + c <= b) return NONC;\n        if (a == b && b == c) return EQ;\n        if (a == b || b == c || a == c) return ISO;\n        return SCA;\n    }\n}\n```
['Java']