DEV Community 👩‍💻👨‍💻

Discussion on: Data Structures in Go: Queue and Stack

Collapse
 
sergey_telpuk profile image
Sergey Telpuk • Edited on

There should be mentioned about the bidirectional queue.
en.wikipedia.org/wiki/Double-ended...

Collapse
 
dorin profile image
Dorin Author

Sure! It is a bit different though.
Are you personally using a bidirectional queue for something? If so, I'm curious to know what for.

Collapse
 
sergey_telpuk profile image
Sergey Telpuk • Edited on

If I see the benefit of using double-queue, of course, I'll apply it. As for practical using, I can't give you a good example:). Also, good to see the implementation of the following type of queue:

  1. a priority queue
  2. double-ended queue
  3. circular queue
Thread Thread
 
dorin profile image
Dorin Author

Thanks for the suggestion. I'll try to implement those :)