This activity serves as an introduction to linear data structures. You are tasked with completing the array implementations of Stack and Queue.
The solution is available on the solution branch of this repo.
- Use this template to create your own repository (guide).
- Read through the provided tests in
__tests__/
. - Run the tests. All of them should fail!
npm test
- Complete the methods marked as
TODO
inStack.js
andQueue.js
until all test cases pass. - (optional) Make the test cases more robust! Are there any missing? Can the provided tests be improved?