Queues and the term 'Count' - What Does Count Do Exactly Again?

Posted by HollerTrain on Stack Overflow See other posts from Stack Overflow or by HollerTrain
Published on 2010-03-26T00:09:52Z Indexed on 2010/03/26 0:13 UTC
Read the original article Hit count: 467

Filed under:

I know 'dequeue' and 'enqueue' for Queues (remove and add respectively), but what is 'count'? Does that return the total number of items in the Queue, or only the top item in the queue?

I think I may be getting 'count' confused with the 'peek' used in Stacks - which returns the latest node at the top of the stack.

© Stack Overflow or respective owner

Related posts about homework