Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion implementation/03-queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Queue {
constructor() {
this.head = null;
this.tail = null;
this.length = 0;
}

enqueue(val) {
Expand All @@ -15,7 +16,7 @@ class Queue {

dequeue() {
// Remove node from front of queue (linked list)

// Write your hypothesis on the time complexity of this method here
}

Expand Down
1 change: 1 addition & 0 deletions implementation/test/03-queue-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe('Queue', () => {
it('Should have head, tail and length properties', () => {
expect(queue).to.have.property('head');
expect(queue).to.have.property('tail');
expect(queue).to.have.property('length');
});

it('Should not implement an Array to store values', () => {
Expand Down