572 views
1 votes
1 votes
how many stack are require to implement a queue ???????????????

how many queue are require to implement a stack?????????????????????

 

 

 

explain plz

2 Answers

0 votes
0 votes
We need 2 stack to implement 1 queue and 2 queue to implement 1 stack to perform  stack and queue operation.

Related questions

0 votes
0 votes
1 answer
1
Abhrajyoti00 asked Oct 29, 2022
741 views
Can there be “Stack Overflow” in Linked list Implementation of stack? If Yes, how?