Is there any data structure which can perform this operations:
add element
delete element
return the maximal of it
with O(1) for query?
Data structure question
Is there any data structure which can perform this operations:
add element
delete element
return the maximal of it
with O(1) for query?