The initial configuration of queue is a, b, c, d. ‘a’ is at the front. To get the configuration d, c, b, a how many deletions and additions required:
A. 2 deletions, 3 additions
B. 3 deletions, 2 additions
C. 3 deletions, 4 additions
D. 3 deletions, 3 additions
Answer:D
The initial configuration of queue is a, b, c, d. ‘a’ is at the front. To get the configuration d, c, b, a how many deletions and additions required:
A. 2 deletions, 3 additions B. 3 deletions, 2 additions C. 3 deletions, 4 additions D. 3 deletions, 3 additions