Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 270 Bytes

README.md

File metadata and controls

5 lines (4 loc) · 270 Bytes

Queue

Let T be a data type. A queue of type T, denoted by Queue<T>, is a sequence of objects of type T with the following methods:

  • enqueue(value: T): adds value to the end of queue;
  • dequeue() -> T: removes first object of queue, and returns it.