Question bank › Hashing
Dsa Hashing Easy

Employee ID Validation

You are given a list of employee IDs. Your task is to determine if there are any duplicate employee IDs. If duplicates exist, print 'Duplicate IDs found' and if not, print 'All IDs unique'. Input format: - The first line contains an integer n, the size of the list. - The second line contains n employee IDs. Output format: - Print 'Duplicate IDs found' or 'All IDs unique'. Example: Input: 5 E123 E456 E789 E123 E000 Output: Duplicate IDs found

Key concepts

hashingsetsvalidation

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
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.