Skip to content

alimsahy/CircularList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircularList

Simple circular list implementation using C#

Circular List Visualized

Usage

CircularList myList = new CircularList();

myList.Insert(25); // Index: 0
myList.Insert(42); // Index: 1
myList.Insert(12); // Index: 2
myList.Insert(10); // Index: 3

myList.RemoveAt(2); // Removes 12

int value = myList[2]; // Gets 10

int beforeMinimumValue = myList.GetPrevious(myList.Min()).Value;
int beforeMinimumIndex = myList.GetPrevious(myList.Min()).Index;

int max = myList.Max().Value;
int min = myList.Min().Value;
int sum = myList.Sum();
int avg = myList.Avg();

About

C# circular linked list implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages