| 1. |
Adapted from Sahni, Chapter 10, Question 7 (a)-(c)
Consider a double-ended queue (deque) of characters. A deque differs from a standard queue in that it allows objects to be added and deleted from both ends of the queue. Contrast this to a standard queue, where objects can only be added to the end of the queue and removed from the front.
|