Multiset with Min and Max
Maintain a multiset. Operations: add x, remove x (removes one copy if present), count x, min, max. min and max print EMPTY when the multiset is empty.
Constraints
1 <= q <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.