[ back to toc ]

data structure

Date: 2002/01/26 13:39

how can i create two queues, enqueue data in them and then compare if
there are equal or not?
Well, it depends. "queue" is not something defined by the language C. Thus
it can mean many things. What is a queue for you?

A queue structure can be implemented as an array if the length of the
queue is known before the program starts. If that is not known then linked
list has to be used.

In either case equality can be implemented comparing the elements of the
queue one by one.


[ back to toc ]