0 votes 0 votes A Queue could be implemented using two Stacks. So what will be the time complexity for insertion and deletion in this queue? Programming in C stack queue + – Rajesh Raj asked Jan 28, 2017 Rajesh Raj 581 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes you can refer following links for better understanding: https://www.youtube.com/watch?v=_54ovAw-dvc https://www.youtube.com/watch?v=_OfvUUodNiI&t=18s Hira Thakur answered Jun 28, 2017 Hira Thakur comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes For insertion O(1) and for deletion O(n) Ankit001 answered Jul 13, 2017 Ankit001 comment Share Follow See all 0 reply Please log in or register to add a comment.