Question bank › Hashing
Dsa Hashing Warm-up

Inventory Deduplication

You are managing an inventory system and need to deduplicate item names. Write a program that takes item names as input (one per line) until an empty line is encountered. The program should output the unique item names, sorted alphabetically, each on a new line. Example input: banana apple apple orange Output: apple banana orange

Key concepts

hashingsetsdeduplication

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.