the minimum number of stacks needed to implement a queue is_____
Answers
Answered by
7
Two Stacks
The minimum number of stacks needed to implement a queue is two Stacks.
Answered by
1
The minimum number of stacks that are required to implement a queue is Two
Detailed answer
A queue can be implemented using a minimum of 2 stacks.
- A stack is a linear data structure that follows a sequence in which the operations are performed.
- There is no maximum or limit to the size of the stack.
- Stacks are used for evaluating and implementing functions.
- It is considered an abstract data type.
Similar questions