HTMLify

LeetCode - Number of Senior Citizens - Python
Views: 32 | Author: abh
class Solution:
    def countSeniors(self, details: List[str]) -> int:
        return len(list(filter(lambda p: p>60, [int(p[11:-2]) for p in details])))

Comments