Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 483 Bytes

Day 121.md

File metadata and controls

22 lines (17 loc) · 483 Bytes

Day 121

Link: https://x.com/kom_senapati/status/1785664633854099803

Approach

  • Used list comprehensions to form the required list of numbers and returned max of their lengths

Code

class Solution:
    # @param A : list of integers
    # @param B : list of integers
    # @param C : integer
    # @return an integer
    def solve(self, A, B, C):
        return max(
            len([n for n in A if n > C]),
            len([n for n in B if n < C])
        )