Dsa
Arrays
Warm-up
Check for Duplicates
You need to check if there are any duplicate integers in a list. First, read an integer n (the number of integers), followed by n space-separated integers. Output 'True' if there are duplicates, otherwise 'False'.
Example Input:
4
1 2 3 1
Example Output:
True
Key concepts
arraysvalidation
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