Bucket

Limits: 2s, 512 MB

You have a bucket of numbers which is initially empty. You have to perform Q operations of 4 different types explained below.


This is a companion discussion topic for the original entry at https://toph.co/p/bucket