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.
|
1
|
|
2
|
|
3
|
|
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.