+ 1
Differences between HashSet and LinkedList?
1 ответ
+ 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.