Mehta and the Typical Supermarket

  • + 1 comment

    This was an interesting problem with a good editorial and I learned a few things. However I really wish the test cases were not designed to take 90%-95% of the allowed runtime. I'd rather think about algorithms with decent asymptotic running times rather than optimize to save microseconds here and there.