👉 In computer science, a queue is an abstract data structure that follows the first-in-first-out (FIFO) order. It allows for adding elements at any position in the list without changing the order of elements. A queue is represented by a sequence of nodes where each node contains an element and references to its next and previous nodes. The operations on a queue are typically performed by removing the last element from the queue, or inserting an element into the queue, which can be done either before or after