Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Feature Description
Given an array arr of size n which contains elements in range from 0 to n-1, you need to find all the elements occurring more than once in the given array. Return the answer in ascending order. If no such element is found, return list containing [-1].
Note: Try and perform all operations within the provided array. The extra (non-constant) ) space needs to be used only for the array to be returned
Use Case
Add gfg prblm-solution "find-duplicates-in-an-array"
Benefits
Add gfg prblm-solution "find-duplicates-in-an-array"
Add ScreenShots
Priority
High
Record
- I have read the Contributing Guidelines
- I'm a GSSOC'24 contributor
- I have starred the repository