Dsa
Arrays
Easy
Unique Integer Count
Count the number of unique integers in an array. Return the count of unique integers found in the input array.
Input Format:
- The first line contains an integer n (1 ≤ n ≤ 100), the size of the array.
- The second line contains n space-separated integers stored in the array.
Output Format:
- Print the count of unique integers.
Example:
Input:
4
1 1 2 3
Output:
3
Key concepts
arrayssetscounting
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