Skip to content

Commit

Permalink
Revert to old code
Browse files Browse the repository at this point in the history
  • Loading branch information
msindev committed Sep 24, 2018
1 parent a108971 commit d8d2ce8
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Circular Queue ADT/CircularQueueADT.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,3 @@ char* dequeue(queue *);
void display(queue *);
int isFull(queue *);
int isEmpty(queue *);

int isFull(queue *q)
{
if((q->rear == SIZE - 1 && q->front == 0) || (q->rear == q->front - 1))
{
return 1;
}
return 0;
}

int isEmpty(queue *q)
{
if(q->front == -1)
{
return 1;
}
return 0;
}

0 comments on commit d8d2ce8

Please sign in to comment.