Well built code for 3 languages with margin(97%)
My Result:\n\n\n# Complexity\n- Time complexity:\nO(n)\n\n- Space complexity:\nO(1)\n\n# Code\npython []\nclass Solution(object):\n    def countSeniors(self, de
# My Result:\n![Screenshot_1-8-2024_95539_leetcode.com.jpeg](https://assets.leetcode.com/users/images/0cded6d8-b72f-49b1-ab47-969a741675b1_1722486368.0809944.jpeg)\n\n# Complexity\n- Time complexity:\nO(n)\n\n- Space complexity:\nO(1)\n\n# Code\n```python []\nclass Solution(object):\n    def countSeniors(self, details):\n        """\n        :type details: List[str]\n        :rtype: int\n        """\n        counter = 0\n        for i in details:\n            if int(i[11:13]) > 60:\n                counter+=1\n        return counter\n```\n```python3 []\nclass Solution:\n    def countSeniors(self, details: List[str]) -> int:\n        return sum(int(x[11:13]) > 60 for x in details)\n```\n```java []\nclass Solution {\n    public int countSeniors(String[] details) {\n        int ans = 0;\n        for (var x : details) {\n            int age = Integer.parseInt(x.substring(11, 13));\n            if (age > 60) {\n                ++ans;\n            }\n        }\n        return ans;\n    }\n}\n```\n```C++ []\nclass Solution {\npublic:\n    int countSeniors(vector<string>& details) {\n        int ans = 0;\n        for (auto& x : details) {\n            int age = stoi(x.substr(11, 2));\n            ans += age > 60;\n        }\n        return ans;\n    }\n};\n```
['Array', 'String', 'Python', 'C++', 'Java', 'Python3']