next up previous contents index
Next: 1.5.3 Using the operand Up: 1.5 Stacks Previous: 1.5.1 Efficiency issues   Contents   Index

1.5.2 Using stacks as queues

Since pushing and popping is efficient for both ends of stacks, this means that stacks are suitable for use as queues. Either orientation for input/output is fine.



Jason Evans 2005-03-16