• + 1 comment

    Yeah, my solution was lame, but all the algorithms I looked up used Heaps. It looks like MultiSet will work great, thanks for your help.