I have previously discussed various stack related topics such as operations that can be performed on the stack, the implementations of stack using other data structures such as array and linked list, retrieving the minimum element of the stack in constant time with and without auxiliary stack and few other topics. In this post IContinue reading “Implement two stacks using an array in Java”