lveay2 / Java-Interviews-Data-Points

1 stars 0 forks source link

Data Structures #1

Open lveay2 opened 7 years ago

lveay2 commented 7 years ago

Arrays

Stack

Queue (Priority Queue)

List (ArrayList, LinkedList, Vector)

Set (*HashSet, TreeSet, LinkedHashSet)

Map(*HashMap, TreeMap, LinkedHashMap, HashTable)

Collections make data structure thread safe

Thread-safe Data Structures

lveay2 commented 7 years ago

关于Java集合的小抄 http://calvin1978.blogcn.com/articles/collection.html [Java基础要义]HashMap、LinkedHashMap元素遍历机制探讨 http://blog.csdn.net/luanlouis/article/details/43017071 深入理解 hash 函数、HashMap、LinkedHashMap、TreeMap http://blog.csdn.net/zq602316498/article/details/39351363 教你透彻了解红黑树 https://github.com/julycoding/The-Art-Of-Programming-By-July/blob/master/ebook/zh/03.01.md

lveay2 commented 5 years ago

Arrays

ArrayList:

Linked List:

Doubly-Linked List:

Stack:

Queue/Deque/Circular Queue:

Binary Search Tree:

Heap/PriorityQueue (min/max):

HashMap/Hashtable/HashSet:

Reference: https://stackoverflow.com/questions/7294634/what-are-the-time-complexities-of-various-data-structures