Created
January 13, 2020 04:26
-
-
Save McLarenCollege/ee9fdc8a3f3df7d8b75f50407df648b4 to your computer and use it in GitHub Desktop.
Simple Queue Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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