This implementation uses a singly-linked list with a static nested class for linked-list nodes. The enqueue,
dequeue, peek, size, and is-empty operations all take constant time in the worst case.
For additional documentation, see Section 1.3 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.
Generated using TypeDoc
This implementation uses a singly-linked list with a static nested class for linked-list nodes. The enqueue,
dequeue, peek, size, and is-empty operations all take constant time in the worst case.
For additional documentation, see Section 1.3 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.