Showing posts with the label Queue

Write a python program to check whether the given string is palindrome or not, using deque.

Q. Write a python program to check whether the given string is palindrome or no…

Show the status of deque after each operation peek() insertFront(12) insertRear(67) deletionFront() insertRear(43) deletionRear()

Q. Show the status of deque after each operation peek() insertFront(12) insertR…

Show the status of queue after each operation enqueue(34) enqueue(54) dequeue()

Q. Show the status of queue after each operation enqueue(34) enqueue(54) dequeu…

How is queue data type different from deque data type?

Q. How is queue data type different from deque data type? Answer :- Queue = Qu…

Write a menu driven python program using queue, to implement movement of shuttlecock in it’s box.

Q. Write a menu driven python program using queue, to implement movement of shu…

How does FIFO describe queue?

Q. How does FIFO describe queue? Answer :- Queues are the data structures where…

Compare and contrast queue with stack.

Q. Compare and contrast queue with stack. Answer :- Similarities: 1. Both Queue…

Fill in the blank __ is a linear list of elements in which insertion and deletion takes place from different ends.

Q. Fill in the blank a) ____________________ is a linear list of elements in wh…

Load More That is All