Data Structure Interview Questions and Answers

 

What is a stack?

A stack is a data structure in which only the top element can be accessed. As data is stored in the stack, each data is pushed downward, leaving the most recently added data on top.

Posted by:Richards