← MakeMyTrip questions

Find all duplicate elements in an array

Filed under MakeMyTrip · Also reported at Nokia

Given an array of n elements containing numbers between 1 and n-1, where some numbers appear more than once, find all the duplicate elements.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related MakeMyTrip questions

Collected from public candidate posts and coding forums. Updated Nov 2026.