1 1 vote how many stack are require to implement a queue ??????????????? how many queue are require to implement a stack????????????????????? explain plz Data Structures stack + – akankshadewangan24 894 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
4 4 votes We need 2 stacks to implement 1 queue And 1 queue to implement 1 stack Angkit answered Jun 20, 2017 Angkit comment Share Follow See 1 comment 1 1 comment reply Sanyam Lakhanpal commented Jun 20, 2017 reply Follow flag http://www.geeksforgeeks.org/implement-a-stack-using-single-queue/ 1 1 replyShare Please log in or register to add a comment.
0 0 votes We need 2 stack to implement 1 queue and 2 queue to implement 1 stack to perform stack and queue operation. Ankit001 answered Jul 13, 2017 Ankit001 comment Share Follow 0 reply Please log in or register to add a comment.