目录 ConcurrentHashMap 2 预备知识 2 Hash 2 位运算 2 1.7中原理和实现 3 ConcurrentHashMap中的数据结构 3 初始化做了什么事? 4 在get和put操作中,是如何快速定位元素放在哪个位置的? 5 get()方法 6 put()方法 6 扩容操作 ...
分类:
其他好文 时间:
2020-02-02 21:44:59
阅读次数:
71
MySQL 会给每个线程分配一块内存用于排序,称为 sort_buffer。 select city,name,age from t where city='杭州' order by name limit 1000 ; 通常情况下,这个语句执行流程如下所示 : 初始化 sort_buffer,确定放 ...
分类:
其他好文 时间:
2020-02-02 16:00:42
阅读次数:
88
1003 Emergency (25分) As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities ...
分类:
其他好文 时间:
2020-02-02 15:43:47
阅读次数:
85
通过execute sql string关键字来执行对数据库的插入操作和删除操作。 (1)、向数据库中插入数据 connect to database using custom params pymysql database='world',user='root',password='root',h ...
分类:
数据库 时间:
2020-02-01 23:10:40
阅读次数:
109
通过query关键字可以对数据库中的表进行查询。 示例:在world数据库中,执行“select * from city limit 5;”,这条sql语句。 connect to database using custom params pymysql database='world',user= ...
分类:
数据库 时间:
2020-02-01 22:58:49
阅读次数:
96
It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that c ...
分类:
其他好文 时间:
2020-02-01 01:04:58
阅读次数:
91
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro ...
分类:
其他好文 时间:
2020-01-31 12:10:59
阅读次数:
88
ZOJ1002 —— Fire net Time Limit: 2000 ms Memory Limit: 65536 KB Suppose that we have a square city with straight streets. A map of a city is a square b ...
分类:
其他好文 时间:
2020-01-27 14:00:53
阅读次数:
112
1008 Elevator (20分) 题目: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote ...
分类:
其他好文 时间:
2020-01-26 23:53:52
阅读次数:
68