Link: https://x.com/kom_senapati/status/1785664633854099803
- Used list comprehensions to form the required list of numbers and returned max of their lengths
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])
)