Is there any data structure which can perform this operations:
add element
delete element
return the maximal of it
with O(1) for query?
№ | Пользователь | Рейтинг |
---|---|---|
Нет данных |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | maomao90 | 171 |
2 | awoo | 163 |
2 | adamant | 163 |
4 | maroonrk | 152 |
5 | nor | 151 |
5 | -is-this-fft- | 151 |
7 | TheScrasse | 147 |
7 | atcoder_official | 147 |
9 | Petr | 145 |
10 | pajenegod | 144 |
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?
Название |
---|