To know how many nodes are in a queue, we must count them by traversing the queue True. We first define the node that is at the head as initial. We then declare and initialize the count to 0.we traverse through till the current point to null.

profileKahRuruWriting
 (Not rated)
 (Not rated)
Chat

  

To know how many nodes are in a queue, we must count them by traversing the queue 


    • 6 years ago
    T
    NOT RATED

    Purchase the answer to view it

    blurred-text