Question 25

A data structure is required for storing a set of integers such that each of the following operations can be done in (log n) time, where n is the number of elementsin the set.
1. Deletion of the smallest element.
2. Insertion of an element if it is not already present in the set.
Whichof the following data structures can be used for this purpose?


Create a FREE account and get:

  • Download Maths Shortcuts PDF
  • Get 300+ previous papers with solutions PDF
  • 500+ Online Tests for Free

cracku

Boost your Prep!

Download App