Efficiently design Insert, Delete and Median queries on a set - GeeksforGeeks
Given an empty set initially and a number of queries on it, each possibly of the following types:
Read full article from Efficiently design Insert, Delete and Median queries on a set - GeeksforGeeks
Given an empty set initially and a number of queries on it, each possibly of the following types:
- Insert – Insert a new element 'x'.
- Delete – Delete an existing element 'x'.
- Median – Print the median element of the numbers currently in the set
Read full article from Efficiently design Insert, Delete and Median queries on a set - GeeksforGeeks