Java Simple Clean Solution | Daily Challenges
Complexity\n- Time complexity:O(n)\n Add your time complexity here, e.g. O(n) \n\n- Space complexity:O(1)\n Add your space complexity here, e.g. O(n) \n\n# Code
# Complexity\n- Time complexity:$$O(n)$$\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:$$O(1)$$\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n    public int countSeniors(String[] details) {\n        int cnt = 0;\n        for (String detail : details) {\n            if (Integer.valueOf(detail.substring(11, 13)) > 60) {\n                cnt++;\n            }\n        }\n        return cnt;\n    }\n}\n```
['Array', 'Math', 'String', 'String Matching', 'Java']