Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

Help with Policy based Data Structure — ordered_set

Правка en2, от BinaryCrazy, 2020-04-21 00:16:47

Hi all,

I hope you are having a great day.

I was solving this problem, which is quite simple with the policy based Data Structure Ordered Set.

However, I wanted to create a Ordered Multiset, but I couldn't get it to work, as I could not erase from the resulting data structure.

Can someone please help me by giving me the code for the ordered_multiset which supports insertion,deletion, order_by_key, and size?

Thanks,

-BC

Теги policy based, cp, ordered_set

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский BinaryCrazy 2020-04-21 05:17:42 43 Tiny change: '()`.\n\n\n\n\n' -> '()`.\n\n\nFinally, my solution: [submission:77420177]\n\n'
en3 Английский BinaryCrazy 2020-04-21 05:16:53 923 Tiny change: 'multiset` 'om' since its' -> 'multiset` `om` since its'
en2 Английский BinaryCrazy 2020-04-21 00:16:47 22
en1 Английский BinaryCrazy 2020-04-21 00:16:16 595 Initial revision (published)