MCPcopy Create free account
hub / github.com/anupam-kumar-krishnan/Competitive_Programming / isFull

Function isFull

Basic Programming/queue.c:32–35  ·  view source on GitHub ↗

Queue is full when size becomes equal to the capacity

Source from the content-addressed store, hash-verified

30// Queue is full when size becomes
31// equal to the capacity
32int isFull(struct Queue* queue)
33{
34 return (queue->size == queue->capacity);
35}
36
37// Queue is empty when size is 0
38int isEmpty(struct Queue* queue)

Callers 1

enqueueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected