The condition for testing an empty queue is rear=front-1. In linked list implementation of queue the condition for an empty queue is the header node link field is NULL.
How do you test for an empty Queue?
September 14, 2023 in Data Structure
September 14, 2023 in Data Structure
The condition for testing an empty queue is rear=front-1. In linked list implementation of queue the condition for an empty queue is the header node link field is NULL.