Member Technical Staff Interview Questions

4,081 member technical staff interview questions shared by candidates

There is an unsorted array ‘A’ of length n with unique elements. Person Y mistakenly applies Binary search on A to find element ‘X’. Now with the minimum number of swaps in the array, one should make sure he will find the element in the array. But, he is not allowed to swap the element ‘X’. If it is impossible then return -1;
avatar

Intern, Member of Technical Staff

Interviewed at Nutanix

3.8
Sep 5, 2018

There is an unsorted array ‘A’ of length n with unique elements. Person Y mistakenly applies Binary search on A to find element ‘X’. Now with the minimum number of swaps in the array, one should make sure he will find the element in the array. But, he is not allowed to swap the element ‘X’. If it is impossible then return -1;

Viewing 3811 - 3820 interview questions

Glassdoor has 4,081 interview questions and reports from Member technical staff interviews. Prepare for your interview. Get hired. Love your job.