摘要: There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 properties: (1) Every node is either 阅读全文
posted @ 2018-03-13 20:26 blueattack 阅读(352) 评论(0) 推荐(0) 编辑
摘要: map可以实现key到value的一一映射,如果是一对多的,我们可以使用multimap multimap<int,int>mp; mp.insert(make_pair(first,second)); map默认是按照key值从小到大进行排序的,如果希望按照从大到小进行排序,可以使用 map<in 阅读全文
posted @ 2018-03-13 19:08 blueattack 阅读(5976) 评论(0) 推荐(0) 编辑