LinkedQueue
Container of elements that are inserted and removed according to the FIFO principle. This structure is based on SinglyLinkedList.
new LinkedQueue()
length
Number of elements in the queue. This field is read only.
Examples:
clear()
dequeue()
enqueue()
getFirst()
isEmpty()
Running time O(1)
Checks whether the queue is empty or not.
Returns:
TRUE if the queue is empty, FALSE otherwise.
Examples:
Last updated
Was this helpful?