Question bank › Hashing
Dsa Hashing Easy

Unique Element Count

Given a list of integers, find and return the number of unique integers present in the list. Input Format: A single line of space-separated integers. Output Format: A single integer representing the count of unique integers. Example: Input: 1 2 2 3 4 4 4 5 Output: 5

Key concepts

hashingsetscounting

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