#25 - Find Duplicate Numbers
You are given an array of integers. Some of the elements in the array are duplicates, and there can be multiple duplicate numbers. Your task is to implement a function to find and return all duplicate numbers present in the array.
Example 1
Input
Output
Example 2
Input
Output
Last updated