MCPcopy Create free account
hub / github.com/3rfaan/courses / IsEmpty

Function IsEmpty

C/freeCodeCamp/Data Structures/queue-array.c:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10int rear = -1; // rear of empty queue
11
12bool IsEmpty()
13{
14 if (front == -1 && rear == -1)
15 {
16 return true;
17 }
18 else
19 {
20 return false;
21 }
22}
23
24void Enqueue(int x)
25{

Callers 3

EnqueueFunction · 0.85
DequeueFunction · 0.85
PrintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected