Question: please, I need the answer in C++ This problem is simple. Initially, there is a list and it's empty. Then you are given four types

 please, I need the answer in C++ This problem is simple.

Initially, there is a list and it's empty. Then you are given

please, I need the answer in C++

This problem is simple. Initially, there is a list and it's empty. Then you are given four types of query. 1. Insert data to the list 2. Remove data from the list 3. Print an index (1-based) from a specified data after the list was sorted ascendingly 4. Print data from a specified index (1-based) after the list was sorted ascendingly We want to make insertion, deletion, getting operations in Odlog2(n)) Input Input contains several lines. Each line follows one of these formats. 1 n: Insert n (0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!