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

Function isEmpty

Basic Programming/queue.c:38–41  ·  view source on GitHub ↗

Queue is empty when size is 0

Source from the content-addressed store, hash-verified

36
37// Queue is empty when size is 0
38int isEmpty(struct Queue* queue)
39{
40 return (queue->size == 0);
41}
42
43// Function to add an item to the queue.
44// It changes rear and size

Callers 3

dequeueFunction · 0.70
frontFunction · 0.70
rearFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected