Java | Counting | Simple | 5 lines | Clean 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# Co
# 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    var res = 0;\n\n    for (var d : details)\n      if (Integer.parseInt(d.substring(11, 13)) > 60)\n        res++;\n\n    return res;\n  }\n}\n```\nIf you like my solution, please upvote it!
['Array', 'String', 'Java']