18
Last seen 6 years ago
Member for 7 years, 8 months, 9 days
Difficulty Normal
Again an excellent solution! I will look up Counter, I used a dict in my solution.
More
Very cool use of heapq! I would not have thought to use a priority queue here, very nice and readable code.
More
Interesting solution, I wouldn't have thought to use a stack for this problem.
More
Very cool and concise solution, same bisection strategy I chose, but your code is so much more concise!
More
Very nice solution, I know it has been written before in the comments, but I like how you dealt with peek and pop.
More
Compact and readable, you did it again. I clearly over-complicated things for my first solution. Thanks!
More
Very nice indeed, it amazes me over and over again that you can come up with solutions < 1/2 of mine. Thanks, teaches me a lot.
More
Cool solution and educational too! I tend to forget about |= when it comes to set operations.
More
And did you find a better solution? I am just curious.
More