Vidyalelo
Data Structure · Q183

Introduction to Data Structures

Programming · Data Structure · question 183

Q183

Consider you have an array of some random size. You need to perform dequeue operation. You can perform it using stack operation (push and pop) or using queue operations itself (enQueue and Dequeue). The output is guaranteed to be same. Find some differences?

A.
They will have different time complexities
Answer
B.
The memory used will not be different
C.
There are chances that output might be different
D.
No differences

Answer: Option A

Solution

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