How to find duplicates of an array with minimum time complexity when multiple duplicates are present? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to find duplicates of an array with minimum time complexity when multiple duplicates are present?

Arrays in java

14th Aug 2020, 7:31 AM
alagammai uma
alagammai uma - avatar
2 Answers
+ 2
By for loop
14th Aug 2020, 7:33 AM
Amit
Amit - avatar
+ 1
Use hashmap.
14th Aug 2020, 7:34 AM
Hima
Hima - avatar