+ 1

Differences between HashSet and LinkedList?

3rd Sep 2016, 12:03 PM
mohamad.khalili
1 Resposta
+ 1
1)In liked list insertion order is preserved. but in hashset insertion order is not preserved. 2)In hashset duplicate objects are not allowed but in linked list duplicate objects are allowed. 3)The underlying data structure for linked list is double linked list and for hashset is hashtable.
16th Sep 2016, 1:41 PM
Sarath chalapaka
Sarath chalapaka - avatar