Balanced Search Trees
Binary Heapor priority queue is good formax()ormin()as it is only O(1), however it only supportdelMax/Min()and not good for search.Binary search treeis good for search, rank, insert and delete, also quite good for finding max and min, all these operation is O(log N), if the tree can be balanced.Hash Tableis super good for search/look-up (O(1)), insert and delete, but not good for operations such as rank, min, or max.