BNY Mellon | Find Duplicate in array | OA
Question · Posted Apr 2026
Find Duplicate in Array You are given an array of integers 'ARR' containing N elements. Each integer is in the range [1, N-1], with exactly one element repeated in the array. Your task is to find the duplicate element. The duplicate element may be repeated more than twice in the error, but there will be exactly one element that is repeated in the array. Note : All the integers in the array appear only once except for precisely one integer ...
The full answer & interview discussion are available to premium members.
Log in Create a free account