- Create a new class called pseudo queue.
- Do not use an existing Queue.
- Instead, this PseudoQueue class will implement our standard queue interface (the two methods listed below),
- Internally, utilize 2 Stack instances to create and manage the queue
- Methods:
- enqueue
- Arguments: value
- Inserts a value into the PseudoQueue, using a first-in, first-out approach.
- dequeue
- Arguments: none
- Extracts a value from the PseudoQueue, using a first-in, first-out approach.
- enqueue
- NOTE: The Stack instances have only push, pop, and peek methods. You should use your own Stack implementation. Instantiate these Stack objects in your PseudoQueue constructor.
- Write out problem statement
- drew out stack and queue lifo/fifo to understand
- talked out what the drawing is doing and write algorithm
- write the code
- The Big O time and space is O(n) because stack 2 is empty and its moving all elements over from stack 1
