[c++ & Python] easy O(n) solution
\n# 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
\n# 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# C++\n```\nclass Solution {\npublic:\n    int countSeniors(vector<string>& details) {\n        int count = 0;\n        for(auto i : details) {\n            if(i[11] - \'0\' > 6) count++;\n            else if (i[11] - \'0\' == 6 && i[12] - \'0\' > 0) count++;\n        }\n        return count;\n    }\n};\n```\n\n# Python / Python3\n```\nclass Solution:\n    def countSeniors(self, details: List[str]) -> int:\n        count = 0\n        for i in details:\n            if int(i[11]) > 6:\n                count += 1\n            elif int(i[11]) == 6 and int(i[12]) > 0:\n                count += 1\n        return count\n```
['Python', 'C++', 'Python3']