Find Duplicates In O(n) Time And O(1) Extra Space.Given An array Of n Elements With Any Of These Numbers Appearing Any Number Of Times. Find These Repeating Numbers In O(n) And Using Only Constant Memory Space.
Example
Let n Be 9 And Array Be {0,2,3,2,3,0,9,9,7}, The OUTPUT Should Be 2, 3 ,9 And 0.
Output:
Enter The Size Of Array
10
Enter The Element Of Array
1
2
3
1
2
3
4
5
4
6
Repeating Element Are : 1 2 3 4
need an explanation for this answer? contact us directly to get an explanation for this answer