Queue
Class 12 · Computer Science · 9 Questions
Compare and contrast queue with stack.
How does FIFO describe queue?
Show the status of queue after each operation enqueue(34) enqueue(54) dequeue() enqueue(12) dequeue() enqueue(61) peek() dequeue() dequeue() dequeue() enqueue(1)
Can you implement a queue data structure using tuple or dictionary?
Fill in the blank
Write a menu driven python program using queue, to implement movement of shuttlecock in it’s box.
How is queue data type different from deque data type?
Show the status of deque after each operation peek() insertFront(12) insertRear(67) deletionFront() insertRear(43) deletionRear() deletionFront() deletionRear()
Write a python program to check whether the given string is palindrome or not, using deque. (Hint: refer to algorithm 4.1)