Validate Book Club Meeting Dates
Validate Book Club Meeting Dates
EasyStrings0% accepted
Ravi organizes a book club in Pune where members submit meeting dates. He needs to validate that dates follow DD/MM/YYYY format and remove duplicate entries while keeping the first occurrence of each date.
Approach
Given a list of dates in 'DD/MM/YYYY' format, validate the format and remove duplicates while preserving order of first occurrences.
Input
["01/01/2025", "15/02/2025", "01/01/2025"]
Output
["01/01/2025","15/02/2025"]
More Strings problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards