Skip to content

Fully intergrated single linked list in c with 16 functions (Detailed comments on operation)

Notifications You must be signed in to change notification settings

donheshanthaka/Linked-List-in-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linked-List-in-c

Fully intergrated single linked list in c with 16 functions (Detailed comments on operation)

======================= Functionality =======================

listInit() - Initialize the list by creating the first node.

add() - Insert an element at the beginning of the lsit.

append() - Insert an element at the end of the lsit.

insert() – Insert an element at any position of the list.

replace() – Replace an element at any position by the given value.

removeFirst() - Remove the first element of the list.

removeLast() - Remove the last element of the list.

removeElement() – Remove the first occurrence of any element from a non-empty list.

removeAt() – Remove the element at a specified location from a non-empty list.

reverse() - Return a reversed linked list.

deleteList() - Removes the entire list.

search() - Display the position of the given element in the list.

printList() - Display the entire list on to the console.

get() – Return an element from the list at any given position.

listSize() – Return the number of elements in the list.

isEmpty() – Check if the list is empty.

About

Fully intergrated single linked list in c with 16 functions (Detailed comments on operation)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages