MCPcopy Create free account
hub / github.com/AlreadyBored/basic-js-ds / Queue

Class Queue

src/queue.js:15–30  ·  view source on GitHub ↗

* Implement the Queue with a given interface via linked list (use ListNode extension above). * * @example * const queue = new Queue(); * * queue.enqueue(1); // adds the element to the queue * queue.enqueue(3); // adds the element to the queue * queue.dequeue(); // returns the top element from

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected