当前位置:网站首页>List and set
List and set
2022-07-06 11:51:00 【monkeySix】
List Orderly , repeatable
List Implementation class of
- ArrayList By name , As you can see , The bottom layer uses Array , Quick query , Add or delete slowly .
- LinkedList Know by name , The bottom layer uses linked lists , Slow query , Additions and deletions quickly .
- Vector The bottom layer uses arrays , Thread safety , Because the method has synchronized keyword , So it's thread safe .
Set disorder , Do not repeat
Set Implementation class of
- HashSet The bottom layer uses HashMap, use HashMap in key Storing data ensures the uniqueness of data .( disorder , Do not repeat )
- LinkedHashSet According to the name , The bottom layer uses linked lists and HashMap, The linked list ensures order .( Orderly , Not to be repeated )
- TressSet At the bottom are red and black trees .( Orderly , Do not repeat )
边栏推荐
- Case analysis of data inconsistency caused by Pt OSC table change
- Mysql的索引实现之B树和B+树
- 2019腾讯暑期实习生正式笔试
- 5G工作原理详解(解释&图解)
- [AGC009D]Uninity
- Common regular expression collation
- MySQL and C language connection (vs2019 version)
- Using LinkedHashMap to realize the caching of an LRU algorithm
- 【Flink】CDH/CDP Flink on Yarn 日志配置
- Kept VRRP script, preemptive delay, VIP unicast details
猜你喜欢
随机推荐
ES6 let and const commands
MATLAB学习和实战 随手记
About string immutability
【Flink】CDH/CDP Flink on Yarn 日志配置
小L的试卷
XML file explanation: what is XML, XML configuration file, XML data file, XML file parsing tutorial
保姆级出题教程
Correspondence between STM32 model and contex M
Wangeditor rich text reference and table usage
Aborted connection 1055898 to db:
L2-001 emergency rescue (25 points)
Vs2019 desktop app quick start
FTP文件上传文件实现,定时扫描文件夹上传指定格式文件文件到服务器,C语言实现FTP文件上传详解及代码案例实现
[Blue Bridge Cup 2017 preliminary] buns make up
AcWing 242. A simple integer problem (tree array + difference)
5G工作原理详解(解释&图解)
SQL time injection
ImportError: libmysqlclient. so. 20: Cannot open shared object file: no such file or directory solution
Détails du Protocole Internet
MTCNN人脸检测