当前位置:网站首页>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 )
边栏推荐
猜你喜欢
Small L's test paper
Double to int precision loss
Solve the problem of installing failed building wheel for pilot
Nanny level problem setting tutorial
Face recognition_ recognition
double转int精度丢失问题
Linux yum安装MySQL
Learn winpwn (3) -- sEH from scratch
FTP file upload file implementation, regularly scan folders to upload files in the specified format to the server, C language to realize FTP file upload details and code case implementation
第4阶段 Mysql数据库
随机推荐
AcWing 1294. Cherry Blossom explanation
MySQL realizes read-write separation
Valentine's Day flirting with girls to force a small way, one can learn
Contiki source code + principle + function + programming + transplantation + drive + network (turn)
Vs2019 first MFC Application
[NPUCTF2020]ReadlezPHP
vs2019 第一个MFC应用程序
[蓝桥杯2017初赛]方格分割
L2-006 tree traversal (25 points)
[蓝桥杯2021初赛] 砝码称重
【CDH】CDH/CDP 环境修改 cloudera manager默认端口7180
Reading BMP file with C language
About string immutability
Aborted connection 1055898 to db:
Machine learning notes week02 convolutional neural network
[Bluebridge cup 2020 preliminary] horizontal segmentation
What does BSP mean
[Bluebridge cup 2021 preliminary] weight weighing
L2-001 紧急救援 (25 分)
{one week summary} take you into the ocean of JS knowledge