Computer Science, asked by anilkumarbagli6464, 1 year ago

Given an sorted array having all the number is duplicate and one number is unique

Answers

Answered by choudhary21
1

Explanation:

Duplicate elements can be found using two loops. The outer loop will iterate through the array from 0 to length of the array.

The outer loop will select an element.

The inner loop will be used to compare the selected element with the rest of the elements of the array.

Answered by Anonymous
1

Explanation:

Given an array of n + 1 integers between 1 and n, find one of the ... we could try to find a solution with a sorted array. ... Any index is pointing to the value of that index.

Similar questions