摘要:
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 阅读全文
摘要:
map可以实现key到value的一一映射,如果是一对多的,我们可以使用multimap multimap<int,int>mp; mp.insert(make_pair(first,second)); map默认是按照key值从小到大进行排序的,如果希望按照从大到小进行排序,可以使用 map<in 阅读全文