Data Structures Question:

Download Job Interview Questions and Answers PDF

What does isEmpty() member method determines?

Data Structures Interview Question
Data Structures Interview Question

Answer:

isEmpty() checks if the stack has at least one element. This method is called by Pop() before retrieving and returning the top element.

Download Data Structures Interview Questions And Answers PDF

Previous QuestionNext Question
What method removes the value from the top of a stack?What is a queue in data structure?