当前位置:网站首页>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 )
边栏推荐
猜你喜欢
随机推荐
ES6 let and const commands
Detailed explanation of nodejs
Some concepts often asked in database interview
What does BSP mean
yarn安装与使用
[AGC009D]Uninity
When using lambda to pass parameters in a loop, the parameters are always the same value
Mall project -- day09 -- order module
Wangeditor rich text reference and table usage
[yarn] CDP cluster yarn configuration capacity scheduler batch allocation
ES6 promise object
Distribute wxWidgets application
【CDH】CDH5.16 配置 yarn 任务集中分配设置不生效问题
encoderMapReduce 随手记
[Bluebridge cup 2021 preliminary] weight weighing
AcWing 242. A simple integer problem (tree array + difference)
2019 Tencent summer intern formal written examination
2019腾讯暑期实习生正式笔试
DICOM: Overview
ImportError: libmysqlclient. so. 20: Cannot open shared object file: no such file or directory solution








