Dsa
Arrays
Medium
Unique Elements Count
Given an array of integers, determine how many unique elements are present in the array. The input consists of a single line with integers separated by spaces. Print the count of unique elements.
Example Input:
1 2 2 3 4 3 5
Example Output:
5
Key concepts
arrayssetcounting
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