Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

ChrisBennett909/CircularQueue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

CircularQueue

The Circular Queue is a FIFO Data-Type that is better than the basic queue data type as it works on changable start and end points of the queue and therefore is more easily reuseable and self sustaining.

Included Functions:

Check_Empty(CQName): Checks if front is equal to end if this is true then the queue is empty. Check_Full(CQName): Checks if end is equal to MAX or front-1 this would mean the queue is full. EnQueue(CQName, value): If Queue is not full, add value to the index that end points to and increment end by 1. DeQueue(CQName): if queue is not empty increment front by 1 or if front is equal to MAX make it 0. Peak(CQName): returns value at index that front points to without changing any pointer or removing any values.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors