SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

Computer Science AQA A level

» Start this Course
(Practice similar questions for free)
Question:

Program how a queue is tested if its empty

Author: Will Parker



Answer:

If (Empty()) { return count == 0; } hmmm? for each item on q if item = null nullCounter++; if nullCounter = count the queue is emtpy


0 / 5  (0 ratings)

1 answer(s) in total