Sorted hash table (map, dictionary) data structure design
问题 Here's a description of the data structure: It operates like a regular map with get , put , and remove methods, but has a sort method that can be called to sorts the map. However, the map remembers its sorted structure, so subsequent calls to sort can be much quicker (if the structure doesn't change too much between calls to sort ). For example: I call the put method 1,000,000 times. I call the sort method. I call the put method 100 more times. I call the sort method. The second time I call