Skip to content

MariaFernandaOrtega/Circular-linked-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CircularLinkedList

This repository contains a Circular Linked List. The queue implements the following methods:

first(self) returns the element that is currently at the head of the queue. Raises an exception if the queue is empty.

dequeue(self) Removes the first element of the queue.

dequeue(self) Adds an element to the back of the queue. Raises an exception if the queue is empty.

def rotate(self): Rotate the queue: effectively transfer the item at the head of the list to the tail of the list

You may use the template provided, or start your own implementation from scratch.

This is a sample output from my test:

Current Size 3
Current Head a
Current Head after rotating b

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages