2015-03-23

posted Mar 23, 2015, 8:43 AM by Samuel Konstantinovich   [ updated Mar 23, 2015, 8:43 AM ]
Goal: Queues not just for fake terry's.

Stacks are LIFO
Queues are FIFO

Queues should have O(1) operations:
enqueue(n) that places the value n into the queue 
dequeue that removes and returns the next value in the queue. 


Comments