Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 741 Bytes

06-STACKS-AND-QUEUE.md

File metadata and controls

23 lines (13 loc) · 741 Bytes

Stacks and Queue

Given a Stack and a Queue JavaScript classes, implement the Queue.dequeue() method w/ a testing first approach.

N.B.: type npm t to run the tests

Tasks

  • add "enqueu 2, dequeue" test

  • add "enqueu 1, dequeue, enqueue 2, dequeue, euqueue 3, dequeue" test

  • add "enqueu 1, enqueue 2, dequeue, dequeue" test

  • add "enqueu 1, enqueue 2, enqueue 3, dequeue, dequeue, dequeue, enqueue 4, enqueue 5, dequeue, dequeue" test

  • add "enqueu 1, enqueue 2, enqueue 3, dequeue, enqueue 4, enqueue 5, dequeue, dequeue, dequeue, dequeue" test

  • add "enqueue undefined, dequeue" test

  • add "dequeue" test