denque
denque copied to clipboard
Question: remove element by value
What is the best practice for the case when you need to remove an element by value, for example, some object with ID == 123.
I completely understand: this is stack/queue. But in my very difficult case I have to remove element somewhere inside queue...
Thanks!