← 返回 amazon 的题目列表Music Release Date Query
类型:online_judge
amazon
Implement a function that takes a date as input and returns a list of music released on that date. If no music was released on that date, return the list of music released closest to the target date. You need to define the format of the date.
Example:
Input: '2023-02-19', Output: ['song1', 'song2', ...] or Input: '2022-03-15', Output: ['closest_song1', 'closest_song2', ...]
Assume the total number of songs does not exceed 10,000.
Example
Input
2023-02-19