Dsa
Hashing
Easy
Detecting Duplicate Emails
You are building a registration system for a website where users can sign up with their email addresses. Your task is to identify if there are any duplicate email registrations. Duplicate emails should be considered the same regardless of case sensitivity.
Input Format:
- The first line contains an integer E, the number of email registrations.
- The next E lines contain the email addresses.
Output Format:
- Print "Duplicate Emails" if there are duplicate email addresses, otherwise print "No Duplicates".
Example Input:
5
example@test.com
Example@test.com
test@example.com
user@test.com
user2@test.com
Example Output:
Duplicate Emails
Key concepts
hashingvalidationstrings
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now