Software Developers Interview Questions

96,343 software developers interview questions shared by candidates

Find all duplicate elements in an array of length n. The array contains elements only between 1 and n (1 and n included) Element in array can only be present once or twice. Ex: Input Output [1,2,3,2,4] 2 [1,2,2,3,3,4] 2,3 [4,3,6,7,3,1,2] 3
avatar

Software Developer

Interviewed at Swabhav

4.3
Jun 28, 2025

Find all duplicate elements in an array of length n. The array contains elements only between 1 and n (1 and n included) Element in array can only be present once or twice. Ex: Input Output [1,2,3,2,4] 2 [1,2,2,3,3,4] 2,3 [4,3,6,7,3,1,2] 3

Viewing 2731 - 2740 interview questions

Glassdoor has 96,343 interview questions and reports from Software developers interviews. Prepare for your interview. Get hired. Love your job.