Hacktoberfest2021 icon indicating copy to clipboard operation
Hacktoberfest2021 copied to clipboard

Duplicate find in O(N) complexity

Open shresth12-jain opened this issue 3 years ago • 0 comments

You have been given an integer array/list(ARR) of size N which contains numbers from 0 to (N - 2). Each number is present at least once. That is, if N = 5, the array/list constitutes values ranging from 0 to 3, and among these, there is a single integer value that is present twice. You need to find and return that duplicate number present in the array.

shresth12-jain avatar Oct 20 '21 18:10 shresth12-jain