Beats 100% runtime Simple Java Solution
Intuition\nonly digits that matter to use are 11th and 12th ignore rest \n\n# Approach\nsee if 11th digit is greater than 6 just update the count otherwise if i
# Intuition\nonly digits that matter to use are **11th** and **12th** ignore rest \n\n# Approach\nsee if 11th digit is greater than 6 just update the count otherwise if it is 6 then check if 12th digit is greater than 0 or not \n\nunLike other approaches we dont need to convert the substring into the array just get the charAt(11) and minus it with the ascii of 0 which is nothing but 48.\n\n# Complexity\n- Time complexity:\nO(N)\n\n- Space complexity:\nO(2)\n\n# Code\n```java []\nclass Solution {\n    public int countSeniors(String[] details) {\n        int count = 0;\n        for(int i = 0;i<details.length;i++){\n            String s = details[i];\n                if(s.charAt(11)-48>6){\n                    count++;\n                }else if (s.charAt(11)-48 ==6 && s.charAt(12)-48>0){\n                    count++;\n                }\n        }\n        return count;\n    }\n}\n```
['Java']