Key properties of a queue
Now that we know what a queue is and why it is such a useful data structure let's look at its different properties and useful components. These properties are modified when we add or remove data to or from the queue.
Capacity
A queue's capacity is the maximum number of data items it can hold. Only bounded queues have a predefined capacity. Unbounded queues ideally have an unlimited capacity restricted only by the amount of memory available on the system where the code executing the queue implementation is running.
Liking the course? Check our discounted plans to continue learning.