Interview Query

Greater Release Dates

Start Timer

0:00:00

Upvote
13
Downvote
Save question
Mark as completed
View comments (13)
Next question

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

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
.
.
.
.
.


Comments

Loading comments.