Which data structure can be used for storing a set of integers such that each of the following operations can be done in O(log N) time, where N is the number of elements?
- deletion of the smallest element
- insertion of a element if it is not already present in the set
PICK ONE OF THE CHOICES
- A heap can be used, but not a balanced binary search tree
- A balanced binary search tree can be used, but not a heap
- Both balanced binary search and heap can be used
- Neither balanced binary search tree nor heap can be used