how to implement queue using 2 stacks



This example explains how to implement queue using 2 stacks.
two cases : case 1 adding elements to stack 1
removing all elements
case 2: adding removing then adding removing etc.,'

Comments

Popular posts from this blog