Skip to content

Instantly share code, notes, and snippets.

@McLarenCollege
Created January 13, 2020 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McLarenCollege/ee9fdc8a3f3df7d8b75f50407df648b4 to your computer and use it in GitHub Desktop.
Save McLarenCollege/ee9fdc8a3f3df7d8b75f50407df648b4 to your computer and use it in GitHub Desktop.
Simple Queue Template
class SimpleQueue {
constructor(size) {
this.queue = [];
this.maxLength = size;
}
enqueue(item) {
// Only change code below this line
// Only change code above this line
}
dequeue() {
// Only change code below this line
// Only change code above this line
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment