Interview Query

Greater Release Dates

6
Have you seen this question before?

Given two lists of release dates, return the list with more dates past a certain input variable date DD.

Note: Both lists could be of unequal length and in any order.

Example:

Input:

D = "2020-03-01"
L1 = [
    "2020-01-21", 
    "2020-01-09",
    "2020-01-10",
    "2020-02-14",
    "2020-03-01"
]
L2 = [
    "2020-01-20", 
    "2020-04-02",
    "2020-02-08",
    "2020-03-01"
]

Output:

def greater_release_dates(L1, L2, D) -> L2
Next question: Best Slot Machine
.....
Python 3.9.6
Loading editor
Use Shift + Enter to run code