Mphasis Interview Question

Explain stack data structure and it's operations?

Interview Answer

Anonymous

Oct 11, 2021

Stack is a data structure which follows LIFO(last in first out). It has operations like pop and push. Push is to insert the data into stack and pop is to delete the data from stack.