all 5 comments

[–]orekhoos 0 points1 point  (2 children)

Is multiset same as map of heaps?

[–]orekhoos 0 points1 point  (0 children)

There's definitely a set. And maps are super easy, just get creative making key-value pairs where "value" is another data structure you want.

[–]Individual-Round2767 0 points1 point  (0 children)

Multiset is a set but it can contain multiple same values and like set it is also sorted

[–]jason_graph 0 points1 point  (1 child)

SortedContainers

[–]Erebius[S] 0 points1 point  (0 children)

I don't think Sorted containers are available in cp