Given an array of integers where each value

`1 <= x <= len(array)`

, write a function that finds all the duplicates in the array.

### C++ Solution

```
$ g++ -std=c++11 ./FindDuplicates.cc
$ ./a.out
1 2
```

Skip to content
## C++: Find Duplicates in a Positive Integers Range 1 to N

Press Enter / Return to begin your search.

%d bloggers like this: