A queue has configuration a, b, c, d from front to rear. Counting only queue…

A queue has configuration a, b, c, d from front to rear. Counting only queue operations (deletions from the front and additions at the rear), what minimum is needed to get d, c, b, a?

  1. A.

    2 deletions and 3 additions

  2. B.

    3 deletions and 3 additions

  3. C.

    4 deletions and 4 additions

  4. D.

    More than one of the above

  5. E.

    None of the above

Attempted by 60 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…