MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
How many queues are needed to implement a stack. Consider the situation where no other data structure like arrays, linked list is available to you.
A
1
B
2
C
3
D
4
Explanation: 

Detailed explanation-1: -How many queues are needed to implement a stack. Consider the situation where no other data structure like arrays, linked list is available to you. Explanation: A stack can be implemented using two queues.

Detailed explanation-2: -In order to implement the Queue using Stack, we need to consider two stacks.

Detailed explanation-3: -Answers. A stack can be implemented using two queues.

There is 1 question to complete.