aklepatc ([personal profile] aklepatc) wrote 2024-05-08 09:06 pm (UTC)

Perfect! That's what they wanted to see.

One nit though: you are popping the least recently pushed most frequent element...

It makes a tiny bit more sense to pop the most recently pushed one (the last element of the same slice). More sense from both semantical and performance POV.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting