Skip to content

Implementation of a queue (linked list) using C++ guidelines.

Notifications You must be signed in to change notification settings

Abril-Barrera/Queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Queue

Implementation of a queue (linked list) using C++ core guidelines.

I selected the following attributes for my queue:

int *arr;		// array to store queue elements
int capacity;	// maximum capacity of the queue
int front;		// front points to front element in the queue (if any)
int rear;		// rear points to last element in the queue
int count;		// current size of the queue

And I propose the following functions:

void dequeue();
void enqueue(int x);
int peek();
int size();
bool isEmpty();
bool isFull();

If you want to collaborate, let me know which part you want to implement.

About

Implementation of a queue (linked list) using C++ guidelines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages