avinash201199 / avinash201199/DSA-Questions
Finding the duplicate number in the array using Java
Open
good first issue
hacktoberfest
- Dominant language
- C++
- Stars
- 88
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
Given an array of integers arr containing n + 1 integers where each integer is in the range [1, n] inclusive.
There is only one repeated number in arr, return this repeated number.
You must solve the problem without modifying the array arr and uses only constant extra space.
Sample Input:
[3,1,3,4,2]
Sample Output:
3
Please assign this question to me and add hacktoberfest label to it.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.