Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
10
int rear = -1; // rear of empty queue
11
12
bool IsEmpty()
13
{
14
if (front == -1 && rear == -1)
15
{
16
return true;
17
}
18
else
19
{
20
return false;
21
}
22
}
23
24
void Enqueue(int x)
25
{
Callers
3
Enqueue
Function · 0.85
Dequeue
Function · 0.85
Print
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected