
Asked in Chetu
Write a program to find duplicate elements in an array.

AnswerBot
11mo
Use a hash set to find duplicate elements in an array of strings.
Create a hash set to store unique elements.
Iterate through the array and check if each element is already in the hash set.
If it is, the...read more
Help your peers!
Add answer anonymously...
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

