+ 1

Can any one give me idea how can we get duplicate in array without repeat duplicate ?

Data structure

16th Oct 2019, 5:43 PM
Abhay Sardhara
Abhay Sardhara - avatar
7 odpowiedzi
+ 3
You mean that you have array {1,2,3,5,3,6,5,7} and you want to get output is {3,5} ?
16th Oct 2019, 6:07 PM
id001x
id001x - avatar
+ 1
No i want to return array this way [1 2 3 5 6 7]
21st Nov 2019, 7:49 PM
Abhay Sardhara
Abhay Sardhara - avatar
+ 1
What is a hashset ?
21st Nov 2019, 8:28 PM
sneeze
sneeze - avatar
+ 1
Thanks id001x
22nd Nov 2019, 4:01 AM
Abhay Sardhara
Abhay Sardhara - avatar
0
I think HashSet is similar to set() in python
22nd Nov 2019, 4:03 AM
Abhay Sardhara
Abhay Sardhara - avatar