当前位置:网站首页>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 )
边栏推荐
- Solution of deleting path variable by mistake
- vs2019 使用向导生成一个MFC应用程序
- Solve the problem of installing failed building wheel for pilot
- [Flink] Flink learning
- [蓝桥杯2021初赛] 砝码称重
- 搞笑漫画:程序员的逻辑
- AcWing 242. A simple integer problem (tree array + difference)
- 小L的试卷
- {一周总结}带你走进js知识的海洋
- Solution to the practice set of ladder race LV1 (all)
猜你喜欢
随机推荐
[yarn] CDP cluster yarn configuration capacity scheduler batch allocation
L2-006 树的遍历 (25 分)
FTP文件上传文件实现,定时扫描文件夹上传指定格式文件文件到服务器,C语言实现FTP文件上传详解及代码案例实现
Codeforces Round #771 (Div. 2)
When using lambda to pass parameters in a loop, the parameters are always the same value
AcWing 1294. Cherry Blossom explanation
TypeScript
double转int精度丢失问题
【yarn】CDP集群 Yarn配置capacity调度器批量分配
使用lambda在循环中传参时,参数总为同一个值
Detailed explanation of nodejs
快来走进JVM吧
SQL时间注入
分布式事务的实现方案
Word排版(小计)
Vs2019 use wizard to generate an MFC Application
Funny cartoon: Programmer's logic
Machine learning notes week02 convolutional neural network
[CDH] cdh5.16 configuring the setting of yarn task centralized allocation does not take effect
【presto】presto 参数配置优化




![[Blue Bridge Cup 2017 preliminary] grid division](/img/e9/e49556d0867840148a60ff4906f78e.png)



