Vidyalelo
Data Structure · Q65

Introduction to Data Structures

Programming · Data Structure · question 65

Q65

You are asked to perform a queue operation using a stack. Assume the size of the stack is some value 'n' and there are 'm' number of variables in this stack. The time complexity of performing deQueue operation is (Using only stack operations like push and pop)(Tightly bound).

A.
O(m)
Answer
B.
O(n)
C.
O(m*n)
D.
Data is insufficient

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board