Wednesday, December 3, 2014

On Stacks and Queues

The following is a link for a visualization of the queue as an array:
http://www.cosc.canterbury.ac.nz/mukundan/dsal/CQueueAppl.html

Here is also the code we have written in class for printing and reversing queues:
StacksAndQueues.cpp

Some students have also requested that I post the code for checking expressions for bracket consistency. I have drafted a quick solution today that can be found here. Such problems are excellent exercises. It is a pity though that we rarely ask questions on stacks and queues with this level in the exam.

No comments:

Post a Comment