• +91 9723535972
  • info@interviewmaterial.com

Data structure Interview Questions and Answers

Question - Why is the isEmpty() member method called?

Answer - The isEmpty() member method is called within the dequeue process to determine if there is an item in the queue to be removed i.e. isEmpty() is called to decide whether the queue has at least one element. This method is called by the dequeue() method before returning the front element.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners