当前位置:网站首页>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 )
边栏推荐
- Codeforces Round #753 (Div. 3)
- Mall project -- day09 -- order module
- 分布式節點免密登錄
- Solution to the practice set of ladder race LV1 (all)
- AcWing 242. A simple integer problem (tree array + difference)
- L2-007 family real estate (25 points)
- 分布式事务的实现方案
- L2-006 tree traversal (25 points)
- L2-006 树的遍历 (25 分)
- encoderMapReduce 随手记
猜你喜欢
随机推荐
分布式節點免密登錄
XML文件详解:XML是什么、XML配置文件、XML数据文件、XML文件解析教程
第4阶段 Mysql数据库
MySQL and C language connection (vs2019 version)
Contiki源码+原理+功能+编程+移植+驱动+网络(转)
TypeScript
分布式节点免密登录
Case analysis of data inconsistency caused by Pt OSC table change
[CDH] cdh5.16 configuring the setting of yarn task centralized allocation does not take effect
express框架详解
TypeScript
About string immutability
【yarn】CDP集群 Yarn配置capacity调度器批量分配
What does BSP mean
XML file explanation: what is XML, XML configuration file, XML data file, XML file parsing tutorial
【kerberos】深入理解kerberos票据生命周期
牛客Novice月赛40
[Bluebridge cup 2021 preliminary] weight weighing
Codeforces Round #771 (Div. 2)
Redis面试题


![[yarn] CDP cluster yarn configuration capacity scheduler batch allocation](/img/85/0121478f8fc427d1200c5f060d5255.png)






